summaryrefslogtreecommitdiff
path: root/main.cpp
blob: 5667d15da5c5af790075e6e7f27d0ea26876dea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <QtGui/QApplication>
#include <QLocale>
#include <QLibraryInfo>
#include <QTranslator>
#include "mainwizard.h"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);
    QString locale = QLocale::system().name();
    QTranslator *translator;
    
    translator = new QTranslator(&app);
    translator->load(QString("qt_")+locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(translator);
    
    translator = new QTranslator(&app);
    translator->load(QString("acritoxinstaller_")+locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(translator);
    
    MainWizard *l = new MainWizard;
    l->show();
    return app.exec();
}