--- a/QTfrontend/main.cpp Tue Mar 02 19:46:35 2010 +0000
+++ b/QTfrontend/main.cpp Tue Mar 02 19:50:58 2010 +0000
@@ -357,8 +357,10 @@
QTranslator Translator;
{
QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat);
-
- Translator.load(datadir->absolutePath() + "/Locale/hedgewars_" + settings.value("misc/locale", QLocale::system().name()).toString());
+ QString cc = settings.value("misc/locale", "").toString();
+ if(!cc.compare(""))
+ cc = QLocale::system().name();
+ Translator.load(datadir->absolutePath() + "/Locale/hedgewars_" + cc);
app.installTranslator(&Translator);
}