jce-manager/main/main.cpp
Sagi Dayan ca2b2d3cca Translation!
most of the ui is translated English & Hebrew,
the Lang will be as the user's OS.

qm files need to be in the debuging directory for this to work.
2014-06-28 07:15:19 +03:00

17 lines
404 B
C++

#include "mainscreen.h"
#include <QApplication>
#include <QTranslator>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTranslator translator;
QString locale = QLocale::system().name();
translator.load("jce_"+locale , a.applicationDirPath());
a.installTranslator(&translator);
MainScreen w;
w.show();
return a.exec();
}