From 402b24fbf6e2489874e8f4b5f61fb95ad1069d7d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Apr 2012 22:36:15 +0900 Subject: [PATCH] fix for win32 and osx aqt translations --- aqt/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/main.py b/aqt/main.py index f2bfb927d..1a59b8304 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -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)