Changeset 72 for trunk/Packages/CoolTranslator/UCoolTranslator.pas
- Timestamp:
- Mar 6, 2016, 12:10:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolTranslator/UCoolTranslator.pas
r54 r72 6 6 7 7 uses 8 Classes, SysUtils, Forms, StdCtrls, ExtCtrls, StrUtils, Controls, Contnrs, 9 Translations, TypInfo, Dialogs, FileUtil, LCLProc, ULanguages, LCLType; 8 Classes, SysUtils, Forms, ExtCtrls, Controls, Contnrs, 9 Translations, TypInfo, Dialogs, FileUtil, LCLProc, ULanguages, LCLType, 10 LazFileUtils, LazUTF8; 10 11 11 12 type … … 190 191 PropInfo: PPropInfo; 191 192 PropList: PPropList; 192 Excludes: TComponentExcludes;193 193 begin 194 194 Count := GetTypeData(Component.ClassInfo)^.PropCount; … … 223 223 var 224 224 PropType: PTypeInfo; 225 Parent: TObject;226 225 Obj: TObject; 227 226 I: Integer; … … 244 243 if (UpperCase(PropType.Name) = 'TTRANSLATESTRING') then 245 244 //if not IsExcluded(Component, PropInfo^.Name) then 246 SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, Get WideStrProp(Component, PropInfo)));245 SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, GetStrProp(Component, PropInfo))); 247 246 end; 248 247 tkClass: begin … … 382 381 T: string; 383 382 begin 383 T := ''; 384 384 385 // Win32 user may decide to override locale with LANG variable. 385 386 Lang := GetEnvironmentVariableUTF8('LANG'); … … 396 397 end; 397 398 if Lang = '' then 398 L CLGetLanguageIDs(Lang, T);399 LazGetLanguageIDs(Lang, T); 399 400 400 401 if Assigned(Language) and (Language.Code = '') and Assigned(FOnAutomaticLanguage) then begin … … 414 415 function TCoolTranslator.FindLocaleFileName(LCExt: string): string; 415 416 var 416 T: string;417 I: Integer;418 417 Lang: string; 419 418 begin
Note:
See TracChangeset
for help on using the changeset viewer.