Changeset 115 for trunk/Forms/UFormOptions.pas
- Timestamp:
- Oct 13, 2020, 8:05:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormOptions.pas
r96 r115 88 88 procedure TFormOptions.Load; 89 89 begin 90 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core. CoolTranslator1.Language);90 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language); 91 91 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 92 92 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); … … 109 109 begin 110 110 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]); 112 112 if ComboBoxTheme.ItemIndex <> -1 then 113 113 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); … … 137 137 procedure TFormOptions.FormCreate(Sender: TObject); 138 138 begin 139 Core. CoolTranslator1.TranslateComponentRecursive(Self);139 Core.Translator.TranslateComponentRecursive(Self); 140 140 Core.ThemeManager.UseTheme(Self); 141 141 Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items); 142 Core. CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);142 Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 143 143 end; 144 144
Note:
See TracChangeset
for help on using the changeset viewer.