fix for win32 and osx aqt translations

This commit is contained in:
Damien Elmes 2012-04-11 22:36:15 +09:00
parent 770036020a
commit 402b24fbf6

View file

@ -754,6 +754,9 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
pass pass
lang = force if force else self.pm.profile["lang"] lang = force if force else self.pm.profile["lang"]
languageDir=os.path.join(aqt.moduleDir, "aqt", "locale") 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, self.languageTrans = gettext.translation('ankiqt', languageDir,
languages=[lang], languages=[lang],
fallback=True) fallback=True)