mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix i18n when /usr/bin/locale exists
This commit is contained in:
parent
1f1fa125f0
commit
395d80aa2f
1 changed files with 2 additions and 2 deletions
|
@ -71,9 +71,9 @@ def ngettext(single, plural, n):
|
|||
def langDir():
|
||||
dir = os.path.join(os.path.dirname(
|
||||
os.path.abspath(__file__)), "locale")
|
||||
if not os.path.exists(dir):
|
||||
if not os.path.isdir(dir):
|
||||
dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
|
||||
if not os.path.exists(dir):
|
||||
if not os.path.isdir(dir):
|
||||
dir = "/usr/share/anki/locale"
|
||||
return dir
|
||||
|
||||
|
|
Loading…
Reference in a new issue