Ignore:
Timestamp:
Sep 20, 2021, 10:16:37 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Modified: CoolTranslator package merged into Common package.
  • Fixed: Build with Lazarus 2.0.12
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormSettings.pas

    r184 r207  
    8181procedure TFormSettings.FormCreate(Sender: TObject);
    8282begin
    83   Core.CoolTranslator1.TranslateComponentRecursive(Self);
     83  Core.Translator.TranslateComponentRecursive(Self);
    8484  Core.ThemeManager.UseTheme(Self);
    8585  Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items);
    86   Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);
     86  Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items);
    8787end;
    8888
    8989procedure TFormSettings.Load;
    9090begin
    91   ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language);
     91  ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language);
    9292  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    9393  ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme);
     
    105105begin
    106106  if ComboBoxLanguage.ItemIndex <> -1 then
    107     Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
     107    Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
    108108  if ComboBoxTheme.ItemIndex <> -1 then
    109109    Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]);
Note: See TracChangeset for help on using the changeset viewer.