Path to Qt translations in Windows.
--HG-- branch : develop
This commit is contained in:
parent
beed01ad4a
commit
8de66ad408
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user