Ignore:
Timestamp:
Oct 13, 2020, 8:05:14 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Build with Lazarus 2.0.10.
  • Modified: CoolTranslator package replaced by Translator in Common package.
  • Modified: About dialog moved to Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormOptions.pas

    r96 r115  
    8888procedure TFormOptions.Load;
    8989begin
    90   ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language);
     90  ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language);
    9191  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    9292  ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme);
     
    109109begin
    110110  if ComboBoxLanguage.ItemIndex <> -1 then
    111     Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
     111    Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
    112112  if ComboBoxTheme.ItemIndex <> -1 then
    113113    Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]);
     
    137137procedure TFormOptions.FormCreate(Sender: TObject);
    138138begin
    139   Core.CoolTranslator1.TranslateComponentRecursive(Self);
     139  Core.Translator.TranslateComponentRecursive(Self);
    140140  Core.ThemeManager.UseTheme(Self);
    141141  Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items);
    142   Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);
     142  Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items);
    143143end;
    144144
Note: See TracChangeset for help on using the changeset viewer.