QTfrontend/main.cpp.in
changeset 400 450ff6326084
parent 321 1148eeb0557e
child 486 7ea71cd3acd5
--- 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)) {