fix: Qt translations not working
Will need to manually confirm this is working in the bundled builds
This commit is contained in:
parent
4330ab58f5
commit
7e22bc16bc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user