QTfrontend/main.cpp
changeset 52 ae2950c5465c
parent 21 dff476dcaaa3
child 97 e7c1df9cce2c
--- 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();