Changeset 203 for trunk/Packages/CoolTranslator
- Timestamp:
- Apr 24, 2019, 2:43:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolTranslator/UCoolTranslator.pas
r157 r203 127 127 I, J: Integer; 128 128 Po: TPoFile; 129 Item: TPOFileItem; 129 130 begin 130 131 TranslateComponentRecursive(Application); … … 136 137 with TPoFile(FPoFiles[I]) do 137 138 for J := 0 to Items.Count - 1 do 138 with TPoFileItem(Items[J]) do 139 Po.Add(IdentifierLow, Original, Translation, Comments, Context, 139 with TPoFileItem(Items[J]) do begin 140 Item := nil; 141 Po.FillItem(Item, IdentifierLow, Original, Translation, Comments, Context, 140 142 Flags, PreviousID); 143 end; 141 144 Translations.TranslateResourceStrings(Po); 142 145 finally … … 197 200 PropInfo: PPropInfo; 198 201 PropList: PPropList; 202 Excludes: TComponentExcludes; 199 203 begin 200 204 Count := GetTypeData(Component.ClassInfo)^.PropCount; … … 294 298 Result := FPOFilesFolder; 295 299 if Copy(Result, 1, 1) <> DirectorySeparator then 296 Result := ExtractFileDir( UTF8Encode(Application.ExeName)) +300 Result := ExtractFileDir(Application.ExeName) + 297 301 DirectorySeparator + Result; 298 302 end; … … 428 432 function TCoolTranslator.FindLocaleFileName(LCExt: string): string; 429 433 var 434 T: string; 430 435 Lang: string; 431 436 begin
Note:
See TracChangeset
for help on using the changeset viewer.