mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
fix translation path for packaged builds on Linux
This commit is contained in:
parent
e2d133525e
commit
57d7b1f54b
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def langDir():
|
||||||
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):
|
||||||
dir = "/usr/share/anki/locale"
|
dir = os.path.abspath(os.path.join(filedir, "..", "locale"))
|
||||||
return dir
|
return dir
|
||||||
|
|
||||||
def setLang(lang, local=True):
|
def setLang(lang, local=True):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue