diff --git a/designer/main.cpp b/designer/main.cpp index 6ecf8ef..9132b47 100644 --- a/designer/main.cpp +++ b/designer/main.cpp @@ -1,9 +1,21 @@ #include #include +#include int main(int argc, char *argv[]) { QApplication a(argc, argv); + + QTranslator limeReportTranslator; + QString translationPath = QApplication::applicationDirPath(); + translationPath.append("/languages"); + limeReportTranslator.load("limereport_"+QLocale::system().name(),translationPath); + a.installTranslator(&limeReportTranslator); + + QTranslator qtTranslator; + qtTranslator.load("qt_" + QLocale::system().name(),translationPath); + a.installTranslator(&qtTranslator); + LimeReport::ReportEngine report; if (a.arguments().count()>1){ report.loadFromFile(a.arguments().at(1));