summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-11-09 14:00:55 (GMT)
committerTobias Markmann <tm@ayena.de>2017-11-09 14:59:25 (GMT)
commit3a3da1df1b0caab6b2da4e4fb84448fcf464d5b3 (patch)
tree6aa518e1ccd07413fc737682ee9b3597a7dd7f9e
parentcc623ba1f368f01d81460c15cec2d4d327d15298 (diff)
downloadswift-3a3da1df1b0caab6b2da4e4fb84448fcf464d5b3.zip
swift-3a3da1df1b0caab6b2da4e4fb84448fcf464d5b3.tar.bz2
Fix loading translations when detected automatically
Test-Information: Tested with Dutch and German user accounts on Mac OS X 10.10. Change-Id: I9c6d5fdac19abcf4db98034dbd6620732f0caba1
-rw-r--r--Swift/QtUI/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/main.cpp b/Swift/QtUI/main.cpp
index 81dc670..3e20e23 100644
--- a/Swift/QtUI/main.cpp
+++ b/Swift/QtUI/main.cpp
@@ -100,7 +100,7 @@ int main(int argc, char* argv[]) {
qtTranslator.load(QString(SWIFT_APPLICATION_NAME).toLower() + "_" + P2QSTRING(language), P2QSTRING(Swift::pathToString(someTranslationPath.parent_path())));
}
else {
- qtTranslator.load(QLocale::system(), QString(SWIFT_APPLICATION_NAME).toLower(), "_", P2QSTRING(Swift::pathToString(someTranslationPath)));
+ qtTranslator.load(QLocale::system(), QString(SWIFT_APPLICATION_NAME).toLower(), "_", P2QSTRING(Swift::pathToString(someTranslationPath.parent_path())));
}
#else
//std::cout << "Loading " << std::string(QLocale::system().name().toUtf8()) << std::endl;