From 395d80aa2f46f47774aeb1269aa5fd563c62ccd0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 21 Dec 2012 18:47:51 +0900 Subject: [PATCH] fix i18n when /usr/bin/locale exists --- anki/lang.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/lang.py b/anki/lang.py index 9251e77d4..c6d1584b0 100644 --- a/anki/lang.py +++ b/anki/lang.py @@ -71,9 +71,9 @@ def ngettext(single, plural, n): def langDir(): dir = os.path.join(os.path.dirname( os.path.abspath(__file__)), "locale") - if not os.path.exists(dir): + if not os.path.isdir(dir): dir = os.path.join(os.path.dirname(sys.argv[0]), "locale") - if not os.path.exists(dir): + if not os.path.isdir(dir): dir = "/usr/share/anki/locale" return dir