From 91978e5ab88d56fd93aa25a6174515828c64f3d5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 10 Feb 2017 15:31:22 +1000 Subject: [PATCH] fix translations not working in binary build on lin; bump ver --- anki/__init__.py | 2 +- anki/lang.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/anki/__init__.py b/anki/__init__.py index 5ba61d877..16cf49a85 100644 --- a/anki/__init__.py +++ b/anki/__init__.py @@ -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"] diff --git a/anki/lang.py b/anki/lang.py index dd7d98b2b..8dd52fa0f 100644 --- a/anki/lang.py +++ b/anki/lang.py @@ -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):