Changeset 2 in tspsg-svn for trunk/src/main.cpp
- Timestamp:
- Oct 13, 2007, 2:26:06 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
*.vcproj*
*.ncb
*.sln
*.suo
*.idb
*.pdb
ui_*
moc_*
qrc_*
tspsg
Makefile
debug
release
-
Property
svn:ignore
set to
-
trunk/src/main.cpp
r1 r2 29 29 QLocale *qlocale = &QLocale::system(); 30 30 QTranslator translator; 31 // Getting current locale languge name and trying to load it 31 32 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")) 32 37 app.installTranslator(&translator);//*/ 33 38
Note: See TracChangeset
for help on using the changeset viewer.