Load also translations for qtxmlpatterns.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2015-04-29 12:43:11 +03:00
parent 712886e39c
commit e0bd213cee

View File

@ -88,6 +88,14 @@ int main(int argc, char *argv[])
#endif
app.installTranslator(&qtTranslator);
QTranslator qtxmlTranslator;
#if defined(Q_OS_WIN)
qtxmlTranslator.load("qtxmlpatterns_" + checkedLocale, qApp->translationsPath());
#else
qtxmlTranslator.load("qtxmlpatterns_" + checkedLocale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
#endif
app.installTranslator(&qtxmlTranslator);
QTranslator appTranslator;
appTranslator.load("valentina_" + checkedLocale, qApp->translationsPath());
app.installTranslator(&appTranslator);