QTfrontend/model/MapModel.cpp
changeset 11899 0b6baf802b3d
parent 11757 6874644a2d00
child 11900 d71448338ac2
--- a/QTfrontend/model/MapModel.cpp	Thu Nov 17 03:34:21 2016 +0100
+++ b/QTfrontend/model/MapModel.cpp	Thu Nov 17 03:35:10 2016 +0100
@@ -119,7 +119,12 @@
             // load description (if applicable)
             if (isMission)
             {
-                QString locale = HWApplication::keyboardInputLocale().name();
+                // get locale
+                DataManager & dataMgr = DataManager::instance();
+                QSettings settings(dataMgr.settingsFileName(), QSettings::IniFormat);
+                QString locale = settings.value("misc/locale", "").toString();
+                if (locale.isEmpty())
+                    locale = QLocale::system().name();
 
                 QSettings descSettings(QString("physfs://Maps/%1/desc.txt").arg(map), QSettings::IniFormat);
                 desc = descSettings.value(locale, QString()).toString().replace("|", "\n").replace("\\,", ",");