added button to test custom translation file

This commit is contained in:
Max-Wilhelm Bruker 2012-03-25 17:02:52 +02:00
parent 95dd3fc04c
commit 1224eae1c0
5 changed files with 34 additions and 3 deletions

View file

@ -62,7 +62,10 @@ void installNewTranslator()
qtTranslator->load("qt_" + lang, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
qApp->installTranslator(qtTranslator);
translator->load(translationPrefix + "_" + lang, ":/translations");
if (!settingsCache->getCustomTranslationFile().isEmpty())
translator->load(settingsCache->getCustomTranslationFile());
else
translator->load(translationPrefix + "_" + lang, ":/translations");
qApp->installTranslator(translator);
}