Changeset 27 in tspsg-svn for trunk/src/main.cpp
- Timestamp:
- Jun 23, 2009, 7:56:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main.cpp
r21 r27 33 33 app.setOrganizationDomain("www.leppsville.com"); 34 34 app.setApplicationName("TSPSG"); 35 /*/ i18n 36 // TODO: Make English as program's "native" language 35 // i18n 36 // TODO: Language selection in application. 37 // TODO: Saving and restoring selected language. 37 38 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); 38 39 QString locale = QLocale::languageToString(QLocale::system().language()); 39 40 QTranslator translator; 40 // Getting current locale langu ge name and trying to load it41 if ( translator.load(locale,"i18n"))41 // Getting current locale language name and trying to load it, if it's not English 42 if (locale.compare("English") && translator.load(locale,"i18n")) 42 43 app.installTranslator(&translator); 43 // If language loading failed and locale language is not44 // application's "native" we're trying to load English45 else if (locale.compare("Russian") && translator.load("English","i18n"))46 app.installTranslator(&translator);47 //*/48 44 MainWindow mainwindow; 49 45 mainwindow.show();
Note: See TracChangeset
for help on using the changeset viewer.