Changeset 18 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Jun 15, 2009, 8:51:12 PM (15 years ago)
Author:
laleppa
Message:

Translation related updates...

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r17 r18  
    3232/*/ i18n
    3333// TODO: Make English as program's "native" language
    34 QLocale *qlocale = &QLocale::system();
     34QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
     35QString locale = QLocale::languageToString(QLocale::system().language());
    3536QTranslator translator;
    3637        // 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"))
    3839                app.installTranslator(&translator);
    3940        // If language loading failed and locale language is not
    4041        // 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"))
    4243                app.installTranslator(&translator);
    4344//*/
  • trunk/src/resource.h

    • Property svn:keywords set to Id URL
Note: See TracChangeset for help on using the changeset viewer.