From e0bd213cee377a97f9a1a127172ae98ff43e783f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 29 Apr 2015 12:43:11 +0300 Subject: [PATCH] Load also translations for qtxmlpatterns. --HG-- branch : release --- src/app/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 3fc3f52c3..2632e2ef0 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -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);