Ignore:
Timestamp:
May 17, 2019, 12:02:45 AM (5 years ago)
Author:
chronos
Message:
  • Added: Interface language selection in Settings dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/UCore.pas

    r167 r191  
    77uses
    88  Classes, SysUtils, XMLConf, FileUtil, Controls, ActnList, UGrammer,
    9   UPersistentForm, ULastOpenedList, UApplicationInfo;
     9  UPersistentForm, ULastOpenedList, UApplicationInfo, UCoolTranslator;
    1010
    1111type
     
    1515  TCore = class(TDataModule)
    1616    ApplicationInfo1: TApplicationInfo;
     17    CoolTranslator1: TCoolTranslator;
    1718    ImageList1: TImageList;
    1819    PersistentForm1: TPersistentForm;
     
    5758  with XMLConfig1 do begin
    5859    ReopenLastFile := GetValue('ReopenLastFile', True);
     60    CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(String(GetValue('Language', '')));
    5961  end;
    6062end;
     
    6466  with XMLConfig1 do begin
    6567    SetValue('ReopenLastFile', ReopenLastFile);
     68    SetValue('Language', WideString(CoolTranslator1.Language.Code));
    6669    Flush;
    6770  end;
Note: See TracChangeset for help on using the changeset viewer.