diff --git a/anki/lang.py b/anki/lang.py index 9167265ea..e1ecd55da 100644 --- a/anki/lang.py +++ b/anki/lang.py @@ -76,8 +76,12 @@ def ngettext(single, plural, n): return localTranslation().ngettext(single, plural, n) def langDir(): - dir = os.path.join(os.path.dirname( - os.path.abspath(__file__)), "locale") + from anki.utils import isMac + filedir = os.path.dirname(os.path.abspath(__file__)) + if isMac: + dir = os.path.abspath(filedir + "/../../Resources/locale") + else: + dir = os.path.join(filedir, "locale") if not os.path.isdir(dir): dir = os.path.join(os.path.dirname(sys.argv[0]), "locale") if not os.path.isdir(dir):