--- 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();