QTfrontend/main.cpp
changeset 109 ab0340f580c2
parent 97 e7c1df9cce2c
child 119 665c07365cb6
--- a/QTfrontend/main.cpp	Fri Aug 11 20:00:29 2006 +0000
+++ b/QTfrontend/main.cpp	Sat Aug 12 17:41:02 2006 +0000
@@ -47,6 +47,12 @@
 {
 	QApplication app(argc, argv);
 
+	Q_INIT_RESOURCE(hedgewars);
+
+	QTranslator Translator;
+	Translator.load(":/translations/hedgewars_" + QLocale::system().name());
+	app.installTranslator(&Translator);
+
 	QDir mydir = QFileInfo(argv[0]).dir();
 	bindir = new QDir(mydir);
 	cfgdir = new QDir();
@@ -67,12 +73,6 @@
 	datadir = new QDir(mydir);
 	datadir->cd("../share/hedgewars/Data");
 
-	Q_INIT_RESOURCE(hedgewars);
-
-	QTranslator Translator;
-	Translator.load(":/translations/hedgewars_" + QLocale::system().name());
-	app.installTranslator(&Translator);
-
 	HWForm *Form = new HWForm();
 	Form->show();
 	return app.exec();