Changeset 9 for trunk/ULocalization.pas
- Timestamp:
- Feb 11, 2008, 10:27:49 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
*.dcu
*.exe
*.identcache
*.dsk
*.~dsk
Network.cfg
-
Property svn:ignore
set to
-
trunk/ULocalization.pas
r2 r9 10 10 Items: TStringList; 11 11 Name: string; 12 constructor Create; 13 destructor Destroy; 12 14 end; 13 15 14 16 TLocalization = class(TDataModule) 15 17 procedure DataModuleCreate(Sender: TObject); 18 procedure DataModuleDestroy(Sender: TObject); 16 19 public 17 20 ActiveLanguage: Integer; … … 59 62 try 60 63 Name := ReadString('Info', 'Language', 'None'); 61 Items := TStringList.Create;62 64 ReadSectionValues('Main',Items); 63 65 finally … … 95 97 end; 96 98 99 procedure TLocalization.DataModuleDestroy(Sender: TObject); 100 var 101 I: Integer; 102 begin 103 for I := 0 to High(Languages) do 104 Languages[I].Free; 105 end; 106 107 { TLanguage } 108 109 constructor TLanguage.Create; 110 begin 111 Items := TStringList.Create; 112 end; 113 114 destructor TLanguage.Destroy; 115 begin 116 Items.Free; 117 end; 118 97 119 end.
Note:
See TracChangeset
for help on using the changeset viewer.