summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-23 21:36:23 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-23 21:36:23 -0500
commitff67debc5f404400a79e8f55f563a1ca5b57cafd (patch)
tree1b127b214885f6032eccbc52784d480aca48d674
parentb9618a6bf02292132198a5bea6b46dac1863b3ca (diff)
downloadpykolab-ff67debc5f404400a79e8f55f563a1ca5b57cafd.tar.gz
Do not hard-code locale dir. Let gettext use the default location (#4685)
-rw-r--r--pykolab/translate.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pykolab/translate.py b/pykolab/translate.py
index 080cbc2..ce9e406 100644
--- a/pykolab/translate.py
+++ b/pykolab/translate.py
@@ -28,8 +28,7 @@ import os
N_ = lambda x: x
_ = lambda x: current.lgettext(x)
-localedir = '/usr/local/share/locale'
-current = gettext.translation(domain, localedir, fallback=True)
+current = gettext.translation(domain, fallback=True)
def getDefaultLangs():
languages = []
@@ -58,6 +57,6 @@ def setUserLanguage(lang):
langs.append(l)
try:
- current = gettext.translation(domain, localedir, languages=langs, fallback=True)
+ current = gettext.translation(domain, languages=langs, fallback=True)
except:
pass