From 7e22bc16bc3d6c693a56d00313006a999ebc67c8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 2 Feb 2021 21:12:28 +1000 Subject: [PATCH] fix: Qt translations not working Will need to manually confirm this is working in the bundled builds --- qt/aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index dd493ccf8..8b213c96a 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -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)