blob: 0f8a869b8a51a4b27452e833784801c49adce53d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "mainwindow.h"
#include <QApplication>
#include <QTranslator>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//Setup and load translator for localization
QTranslator translator;
QString locale = QLocale::system().name();
translator.load(QString(":localization/localization_") + locale + QString(".qm"));
app.installTranslator(&translator);
MainWindow w;
w.checkConfig();
w.show();
return app.exec();
}
|