fix translations not working in binary build on lin; bump ver

This commit is contained in:
Damien Elmes 2017-02-10 15:31:22 +10:00
parent 9afafa429a
commit 91978e5ab8
2 changed files with 3 additions and 1 deletions

View file

@ -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"]

View file

@ -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):