QTfrontend/main.cpp
changeset 2913 865ae941d59e
parent 2901 6d2636144e1f
child 2948 3f21a9dc93d0
--- 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);
 	}