From 3a3da1df1b0caab6b2da4e4fb84448fcf464d5b3 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Thu, 9 Nov 2017 15:00:55 +0100
Subject: Fix loading translations when detected automatically

Test-Information:

Tested with Dutch and German user accounts on Mac OS X 10.10.

Change-Id: I9c6d5fdac19abcf4db98034dbd6620732f0caba1

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;
-- 
cgit v0.10.2-6-g49f6