fix: Qt translations not working

Will need to manually confirm this is working in the bundled builds
This commit is contained in:
Damien Elmes 2021-02-02 21:12:28 +10:00
parent 4330ab58f5
commit 7e22bc16bc

View File

@ -222,7 +222,7 @@ def setupLangAndBackend(
# load qt translations
_qtrans = QTranslator()
qt_dir = os.path.join(ldir, "qt")
qt_dir = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
qt_lang = lang.replace("-", "_")
if _qtrans.load("qtbase_" + qt_lang, qt_dir):
app.installTranslator(_qtrans)