fix translations on Mac
This commit is contained in:
parent
8503ab29ab
commit
96c737f24f
@ -76,8 +76,12 @@ def ngettext(single, plural, n):
|
|||||||
return localTranslation().ngettext(single, plural, n)
|
return localTranslation().ngettext(single, plural, n)
|
||||||
|
|
||||||
def langDir():
|
def langDir():
|
||||||
dir = os.path.join(os.path.dirname(
|
from anki.utils import isMac
|
||||||
os.path.abspath(__file__)), "locale")
|
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):
|
if not os.path.isdir(dir):
|
||||||
dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
|
dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
|
||||||
if not os.path.isdir(dir):
|
if not os.path.isdir(dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user