--- a/QTfrontend/model/MapModel.cpp Thu Nov 17 03:36:45 2016 +0100
+++ b/QTfrontend/model/MapModel.cpp Thu Nov 17 03:37:48 2016 +0100
@@ -127,13 +127,14 @@
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("\\,", ",");
+ desc = descSettings.value(locale, QString()).toString();
// 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("\\,", ",");
+ desc = descSettings.value(localeSimple, QString()).toString();
}
+ desc = desc.replace("_n", "\n").replace("_c", ",").replace("__", "_");
}
// detect if map is dlc