Sagi Dayan
ca2b2d3cca
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.
17 lines
404 B
C++
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();
|
|
}
|