From 8de66ad4083e56784333f3c4bf1d45662c7fe762 Mon Sep 17 00:00:00 2001 From: dismine Date: Sun, 21 Sep 2014 20:06:15 +0300 Subject: [PATCH] Path to Qt translations in Windows. --HG-- branch : develop --- src/app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index cd7a83f02..5557fbff6 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -146,7 +146,11 @@ int main(int argc, char *argv[]) QString checkedLocale = qApp->getSettings()->value("configuration/locale", QLocale::system().name()).toString(); QTranslator qtTranslator; +#if defined(Q_OS_WIN) + qtTranslator.load("qt_" + checkedLocale, QCoreApplication::applicationDirPath()); +#else qtTranslator.load("qt_" + checkedLocale, QLibraryInfo::location(QLibraryInfo::TranslationsPath)); +#endif app.installTranslator(&qtTranslator); QTranslator appTranslator;