- Timestamp:
- Jun 15, 2009, 8:51:12 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main.cpp
r17 r18 32 32 /*/ i18n 33 33 // TODO: Make English as program's "native" language 34 QLocale *qlocale = &QLocale::system(); 34 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); 35 QString locale = QLocale::languageToString(QLocale::system().language()); 35 36 QTranslator translator; 36 37 // Getting current locale languge name and trying to load it 37 if (translator.load( qlocale->languageToString(qlocale->language()),"i18n"))38 if (translator.load(locale,"i18n")) 38 39 app.installTranslator(&translator); 39 40 // If language loading failed and locale language is not 40 41 // application's "native" we're trying to load English 41 else if ( qlocale->languageToString(qlocale->language()).compare("Russian") && translator.load("English","i18n"))42 else if (locale.compare("Russian") && translator.load("English","i18n")) 42 43 app.installTranslator(&translator); 43 44 //*/ -
trunk/src/resource.h
-
Property
svn:keywords
set to
Id URL
-
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.