Ooops, forgot this :)
authorunc0rr
Tue, 06 Feb 2007 21:33:19 +0000
changeset 400 450ff6326084
parent 399 c7da1bd32b4e
child 401 bcebe3921740
Ooops, forgot this :)
QTfrontend/main.cpp.in
--- 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)) {