diff options
-rw-r--r-- | main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,10 +1,18 @@ #include "mainwindow.h" #include <QApplication> +#include <QTranslator> +#include <QDebug> int main(int argc, char *argv[]) { QApplication app(argc, argv); - + + //Setup and load translator for localization + QTranslator translator; + QString locale = QLocale::system().name(); + translator.load(QString("localization/localization_") + locale + QString(".qm")); + app.installTranslator(&translator); + MainWindow w; w.checkConfig(); |