mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix for win32 and osx aqt translations
This commit is contained in:
parent
770036020a
commit
402b24fbf6
1 changed files with 3 additions and 0 deletions
|
@ -754,6 +754,9 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
|||
pass
|
||||
lang = force if force else self.pm.profile["lang"]
|
||||
languageDir=os.path.join(aqt.moduleDir, "aqt", "locale")
|
||||
if not os.path.exists(languageDir):
|
||||
languageDir = os.path.join(
|
||||
os.path.dirname(sys.argv[0]), "locale")
|
||||
self.languageTrans = gettext.translation('ankiqt', languageDir,
|
||||
languages=[lang],
|
||||
fallback=True)
|
||||
|
|
Loading…
Reference in a new issue