Changeset 10 for trunk/UCore.pas


Ignore:
Timestamp:
Jan 25, 2015, 9:54:33 PM (10 years ago)
Author:
chronos
Message:
  • Added: Option to choose interface language.
  • Added: Source of used packages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r9 r10  
    66
    77uses
    8   Classes, SysUtils, XMLConf, FileUtil, Controls, ActnList, UDatabase, Forms;
     8  Classes, SysUtils, XMLConf, FileUtil, Controls, ActnList, UDatabase,
     9  UCoolTranslator, Forms;
    910
    1011type
     
    1718    AExit: TAction;
    1819    ActionList1: TActionList;
     20    CoolTranslator1: TCoolTranslator;
    1921    ImageList1: TImageList;
    2022    XMLConfig1: TXMLConfig;
     
    163165  Preferences.RememberDatabase := XMLConfig1.GetValue('RememberDatabase', True);
    164166  Preferences.LastDatabaseName := XMLConfig1.GetValue('LastDatabaseName', '');
     167  CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(XMLConfig1.GetValue('Language', ''));
    165168end;
    166169
     
    177180  XMLConfig1.SetValue('RememberDatabase', Preferences.RememberDatabase);
    178181  XMLConfig1.SetValue('LastDatabaseName', Preferences.LastDatabaseName);
     182  XMLConfig1.SetValue('Language', CoolTranslator1.Language.Code);
    179183end;
    180184
Note: See TracChangeset for help on using the changeset viewer.