summaryrefslogtreecommitdiff
path: root/main.cpp
blob: 7310c0e508f1fde345544162cb7fe60e14b42b6e (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
25
26
27
28
#include <QtGui/QApplication>
#include <QLocale>
#include <QLibraryInfo>
#include <QTranslator>
#include <QIcon>
#include "lxdesupport.h"
#include "mainwizard.h"

int main(int argc, char** argv)
{
    QApplication app(argc, argv);
    QString locale = QLocale::system().name();
    QTranslator *translator;
    
    LXDESupport::load(); //load lxde icons

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