Changeset 418 for trunk/Packages/Common/UTranslator.pas
- Timestamp:
- Nov 17, 2021, 11:31:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UTranslator.pas
r416 r418 316 316 begin 317 317 with Strings do begin 318 Clear; 319 for I := 0 to Languages.Count - 1 do 320 with TLanguage(Languages[I]) do 321 if Available then begin 322 ItemName := Name; 323 if WithCode and (Code <> '') then ItemName := ItemName + ' (' + Code + ')'; 324 AddObject(ItemName, Languages[I]); 325 end; 318 BeginUpdate; 319 try 320 Clear; 321 for I := 0 to Languages.Count - 1 do 322 with Languages[I] do 323 if Available then begin 324 ItemName := Name; 325 if WithCode and (Code <> '') then ItemName := ItemName + ' (' + Code + ')'; 326 AddObject(ItemName, Languages[I]); 327 end; 328 finally 329 EndUpdate; 330 end; 326 331 end; 327 332 end; … … 375 380 376 381 for I := 1 to Languages.Count - 1 do 377 with TLanguage(Languages[I])do begin382 with Languages[I] do begin 378 383 Available := FileExists(LangDir + DirectorySeparator + ExtractFileNameOnly(Application.ExeName) + 379 384 '.' + Code + ExtensionSeparator + 'po') or (Code = 'en');
Note:
See TracChangeset
for help on using the changeset viewer.