mirror of
https://github.com/ankitects/anki.git
synced 2025-12-30 23:32:57 -05:00
fix translations not working in binary build on lin; bump ver
This commit is contained in:
parent
9afafa429a
commit
91978e5ab8
2 changed files with 3 additions and 1 deletions
|
|
@ -30,6 +30,6 @@ if arch[1] == "ELF":
|
|||
sys.path.insert(0, os.path.join(ext, "py2.%d-%s" % (
|
||||
sys.version_info[1], arch[0][0:2])))
|
||||
|
||||
version="2.0.41" # build scripts grep this line, so preserve formatting
|
||||
version="2.0.42" # build scripts grep this line, so preserve formatting
|
||||
from anki.storage import Collection
|
||||
__all__ = ["Collection"]
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ def langDir():
|
|||
dir = os.path.join(os.path.dirname(sys.argv[0]), "locale")
|
||||
if not os.path.isdir(dir):
|
||||
dir = "/usr/share/anki/locale"
|
||||
if not os.path.isdir(dir):
|
||||
dir = "/usr/local/share/anki/bin/locale"
|
||||
return dir
|
||||
|
||||
def setLang(lang, local=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue