--- a/QTfrontend/main.cpp.in Tue Feb 06 19:34:21 2007 +0000
+++ b/QTfrontend/main.cpp.in Tue Feb 06 21:33:19 2007 +0000
@@ -56,10 +56,6 @@
Q_INIT_RESOURCE(hedgewars);
- QTranslator Translator;
- Translator.load(":/translations/hedgewars_" + QLocale::system().name());
- app.installTranslator(&Translator);
-
QDir mydir("${HEDGEWARS_BINDIR}");
mydir.cd("bin");
@@ -82,6 +78,10 @@
return 1;
}
+ QTranslator Translator;
+ Translator.load(datadir->absolutePath() + "/Locale/hedgewars_" + QLocale::system().name());
+ app.installTranslator(&Translator);
+
Themes = new QStringList();
QFile themesfile(datadir->absolutePath() + "/Themes/themes.cfg");
if (themesfile.open(QIODevice::ReadOnly)) {