Ignore:
Timestamp:
Mar 6, 2016, 12:10:38 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Built with FPC 3.0.0. Fixed various compiler messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolTranslator/UCoolTranslator.pas

    r54 r72  
    66
    77uses
    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;
    1011
    1112type
     
    190191  PropInfo: PPropInfo;
    191192  PropList: PPropList;
    192   Excludes: TComponentExcludes;
    193193begin
    194194  Count := GetTypeData(Component.ClassInfo)^.PropCount;
     
    223223var
    224224  PropType: PTypeInfo;
    225   Parent: TObject;
    226225  Obj: TObject;
    227226  I: Integer;
     
    244243          if (UpperCase(PropType.Name) = 'TTRANSLATESTRING') then
    245244          //if not IsExcluded(Component, PropInfo^.Name) then
    246               SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, GetWideStrProp(Component, PropInfo)));
     245              SetStrProp(Component, PropInfo, TranslateText(PropInfo^.Name, GetStrProp(Component, PropInfo)));
    247246        end;
    248247        tkClass: begin
     
    382381  T: string;
    383382begin
     383  T := '';
     384
    384385  // Win32 user may decide to override locale with LANG variable.
    385386  Lang := GetEnvironmentVariableUTF8('LANG');
     
    396397  end;
    397398  if Lang = '' then
    398     LCLGetLanguageIDs(Lang, T);
     399    LazGetLanguageIDs(Lang, T);
    399400
    400401  if Assigned(Language) and (Language.Code = '') and Assigned(FOnAutomaticLanguage) then begin
     
    414415function TCoolTranslator.FindLocaleFileName(LCExt: string): string;
    415416var
    416   T: string;
    417   I: Integer;
    418417  Lang: string;
    419418begin
Note: See TracChangeset for help on using the changeset viewer.