QTfrontend/model/MapModel.cpp
changeset 11901 291d53985dcd
parent 11900 d71448338ac2
child 11902 38d27c1645eb
--- a/QTfrontend/model/MapModel.cpp	Thu Nov 17 03:35:58 2016 +0100
+++ b/QTfrontend/model/MapModel.cpp	Thu Nov 17 03:36:45 2016 +0100
@@ -128,6 +128,12 @@
                 QSettings descSettings(QString("physfs://Maps/%1/desc.txt").arg(map), QSettings::IniFormat);
                 descSettings.setIniCodec("UTF-8");
                 desc = descSettings.value(locale, QString()).toString().replace("|", "\n").replace("\\,", ",");
+                // If not found, try with lanague-only code
+                if (desc.isEmpty())
+                {
+                    QString localeSimple = locale.remove(QRegExp("_.*$"));
+                    desc = descSettings.value(localeSimple, QString()).toString().replace("|", "\n").replace("\\,", ",");
+                }
             }
 
             // detect if map is dlc