Changeset 105 for trunk/Packages/CoolTranslator/UCoolTranslator.pas
- Timestamp:
- May 6, 2019, 10:32:47 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolTranslator/UCoolTranslator.pas
r102 r105 200 200 PropInfo: PPropInfo; 201 201 PropList: PPropList; 202 Excludes: TComponentExcludes;203 202 begin 204 203 Count := GetTypeData(Component.ClassInfo)^.PropCount; … … 253 252 if (UpperCase(PropType.Name) = 'TTRANSLATESTRING') then 254 253 //if not IsExcluded(Component, PropInfo^.Name) then 255 SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, GetWideStrProp(Component, PropInfo)));254 SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, string(GetWideStrProp(Component, PropInfo)))); 256 255 end; 257 256 tkClass: begin … … 415 414 Lang := ParamStr(i + 1); 416 415 end; 417 if Lang = '' then 416 if Lang = '' then begin 417 T := ''; 418 418 LazGetLanguageIDs(Lang, T); 419 end; 419 420 420 421 if Assigned(Language) and (Language.Code = '') and Assigned(FOnAutomaticLanguage) then begin … … 432 433 function TCoolTranslator.FindLocaleFileName(LCExt: string): string; 433 434 var 434 T: string;435 435 Lang: string; 436 436 begin
Note:
See TracChangeset
for help on using the changeset viewer.