mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
added button to test custom translation file
This commit is contained in:
parent
95dd3fc04c
commit
1224eae1c0
5 changed files with 34 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue