Changeset 052d1b9331 in tspsg for src/main.cpp


Ignore:
Timestamp:
Oct 13, 2007, 2:26:06 PM (17 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
f99964aa0b
Parents:
5515c2c2a7
Message:

Load English language as default if locale language not available
Center Main Window at application start
Some svn:ignore's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r5515c2c2a7 r052d1b9331  
    2929QLocale *qlocale = &QLocale::system();
    3030QTranslator translator;
     31        // Getting current locale languge name and trying to load it
    3132        if (translator.load(qlocale->languageToString(qlocale->language()),"i18n"))
     33                app.installTranslator(&translator);
     34        // If language loading failed and locale language is not
     35        // application's "native" we're trying to load English
     36        else if (qlocale->languageToString(qlocale->language()).compare("Russian") && translator.load("English","i18n"))
    3237                app.installTranslator(&translator);//*/
    3338
Note: See TracChangeset for help on using the changeset viewer.