Changeset 29 in tspsg-svn for trunk/src/main.cpp
- Timestamp:
- Jun 24, 2009, 6:54:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main.cpp
r27 r29 33 33 app.setOrganizationDomain("www.leppsville.com"); 34 34 app.setApplicationName("TSPSG"); 35 // i18n 36 // TODO: Language selection in application. 37 // TODO: Saving and restoring selected language. 38 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); 39 QString locale = QLocale::languageToString(QLocale::system().language()); 40 QTranslator translator; 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")) 43 app.installTranslator(&translator); 35 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); 44 36 MainWindow mainwindow; 45 37 mainwindow.show();
Note: See TracChangeset
for help on using the changeset viewer.