unbreak localisation
authornemo
Fri, 24 Jun 2011 14:40:44 -0400
changeset 5300 3d1a27042dda
parent 5298 abee9fb11b33
child 5302 eaa445230124
child 5303 e06bf3954a83
unbreak localisation
QTfrontend/main.cpp
--- a/QTfrontend/main.cpp	Fri Jun 24 13:24:41 2011 +0200
+++ b/QTfrontend/main.cpp	Fri Jun 24 14:40:44 2011 -0400
@@ -465,8 +465,8 @@
         if(cc.isEmpty())
             cc = QLocale::system().name();
         QFile tmpfile;
-        tmpfile.setFileName(cfgdir->absolutePath() + "Data/Locale/hedgewars_" + cc);
-        if (!tmpfile.exists()) tmpfile.setFileName(datadir->absolutePath() + "Locale/hedgewars_" + cc);
+        tmpfile.setFileName(cfgdir->absolutePath() + "/Data/Locale/hedgewars_" + cc);
+        if (!tmpfile.exists()) tmpfile.setFileName(datadir->absolutePath() + "/Locale/hedgewars_" + cc);
         Translator.load(QFileInfo(tmpfile).absoluteFilePath());
         app.installTranslator(&Translator);
     }