--- a/QTfrontend/main.cpp Sun Jan 15 23:32:58 2006 +0000
+++ b/QTfrontend/main.cpp Sun Jan 15 23:56:47 2006 +0000
@@ -32,11 +32,20 @@
*/
#include <QApplication>
+#include <QTranslator>
+#include <QLocale>
#include "hwform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
+
+ 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();