Load also translations for qtxmlpatterns.
--HG-- branch : release
This commit is contained in:
parent
712886e39c
commit
e0bd213cee
|
@ -88,6 +88,14 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
app.installTranslator(&qtTranslator);
|
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;
|
QTranslator appTranslator;
|
||||||
appTranslator.load("valentina_" + checkedLocale, qApp->translationsPath());
|
appTranslator.load("valentina_" + checkedLocale, qApp->translationsPath());
|
||||||
app.installTranslator(&appTranslator);
|
app.installTranslator(&appTranslator);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user