diff options
Diffstat (limited to 'qmidiplayer-desktop/main.cpp')
-rw-r--r-- | qmidiplayer-desktop/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/main.cpp b/qmidiplayer-desktop/main.cpp index c9f3b42..3a7e630 100644 --- a/qmidiplayer-desktop/main.cpp +++ b/qmidiplayer-desktop/main.cpp @@ -18,10 +18,19 @@ #include "qmpmainwindow.hpp" #include <QApplication> #include <QStyle> +#include <QTranslator> +#include <QLibraryInfo> int main(int argc,char **argv) { QApplication a(argc,argv); + QTranslator qtTranslator; + qtTranslator.load("qt_"+QLocale::system().name(), + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + a.installTranslator(&qtTranslator); + QTranslator qmpTranslator; + qmpTranslator.load("qmp_"+QLocale::system().name()); + a.installTranslator(&qmpTranslator); qmpMainWindow w; if(w.pharseArgs(argc,argv)==1)return 0; |