diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-02-29 21:05:33 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-02-29 21:05:33 (GMT) |
commit | 80b09214a500bc3c81c59fed8966aa8a7d4a89e6 (patch) | |
tree | 8e2279f971092a9cb1a676a754ead903cbfe9946 /Swift/QtUI | |
parent | f62374272e53d91914aa9a1ab8ec1318048aa219 (diff) | |
download | swift-contrib-80b09214a500bc3c81c59fed8966aa8a7d4a89e6.zip swift-contrib-80b09214a500bc3c81c59fed8966aa8a7d4a89e6.tar.bz2 |
Add default translation file for english.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Swift/QtUI/main.cpp b/Swift/QtUI/main.cpp index c8f7705..e04ad92 100644 --- a/Swift/QtUI/main.cpp +++ b/Swift/QtUI/main.cpp @@ -35,9 +35,7 @@ int main(int argc, char* argv[]) { QTranslator qtTranslator; if (!someTranslationPath.empty()) { #if QT_VERSION >= 0x040800 - if (QLocale::system().uiLanguages().first() != "en") { - qtTranslator.load(QLocale::system(), QString(SWIFT_APPLICATION_NAME).toLower(), "_", someTranslationPath.parent_path().string().c_str()); - } + qtTranslator.load(QLocale::system(), QString(SWIFT_APPLICATION_NAME).toLower(), "_", someTranslationPath.parent_path().string().c_str()); #else //std::cout << "Loading " << std::string(QLocale::system().name().toUtf8()) << std::endl; qtTranslator.load(QString(SWIFT_APPLICATION_NAME).toLower() + "_" + QLocale::system().name(), someTranslationPath.parent_path().string().c_str()); |