mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 14:29:10 -05:00
fix translation path for packaged builds on Linux
This commit is contained in:
parent
c168fc22cf
commit
04ef57551e
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def langDir():
|
|||
if not os.path.isdir(dir):
|
||||
dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
|
||||
if not os.path.isdir(dir):
|
||||
dir = "/usr/share/anki/locale"
|
||||
dir = os.path.abspath(os.path.join(filedir, "..", "locale"))
|
||||
return dir
|
||||
|
||||
def setLang(lang, local=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue