Changeset 115 for trunk/UCore.pas
- Timestamp:
- Oct 13, 2020, 8:05:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r110 r115 7 7 uses 8 8 Classes, SysUtils, FileUtil, UApplicationInfo, ULastOpenedList, UProject, 9 U CoolTranslator, UTarget, URegistry, Registry, Graphics, Controls, UScaleDPI,10 UPersistentForm, UTheme, U BFTarget;9 UTranslator, UTarget, URegistry, Registry, Graphics, Controls, UScaleDPI, 10 UPersistentForm, UTheme, UAboutDialog, UBFTarget; 11 11 12 12 type … … 15 15 16 16 TCore = class(TDataModule) 17 AboutDialog: TAboutDialog; 17 18 ApplicationInfo: TApplicationInfo; 18 CoolTranslator1: TCoolTranslator;19 Translator: TTranslator; 19 20 ImageListMain: TImageList; 20 21 LastOpenedList: TLastOpenedList; … … 82 83 // If installed in Linux system then use installation directory for po files 83 84 if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then 84 CoolTranslator1.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';85 Translator.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages'; 85 86 {$ENDIF} 86 87 … … 103 104 OpenProjectOnStart := ReadBoolWithDefault('OpenProjectOnStart', True); 104 105 if ValueExists('LanguageCode') then 105 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))106 else CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('');106 Translator.Language := Translator.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 107 else Translator.Language := Translator.Languages.SearchByCode(''); 107 108 ScaleDPI1.DPI := Point(ReadIntegerWithDefault('DPIX', 96), 108 109 ReadIntegerWithDefault('DPIY', 96)); … … 134 135 WriteInteger('MemorySize', MemorySize); 135 136 WriteInteger('CellSize', CellSize); 136 if Assigned( CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then137 WriteString('LanguageCode', CoolTranslator1.Language.Code)137 if Assigned(Translator.Language) and (Translator.Language.Code <> '') then 138 WriteString('LanguageCode', Translator.Language.Code) 138 139 else DeleteValue('LanguageCode'); 139 140 WriteString('Theme', ThemeManager.Theme.Name); … … 191 192 begin 192 193 ScaleDPI; 193 CoolTranslator1.Translate;194 Translator.Translate; 194 195 end; 195 196
Note:
See TracChangeset
for help on using the changeset viewer.