summaryrefslogtreecommitdiffstats
path: root/pyload/utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r--pyload/utils/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py
index da84fe51c..5033780c0 100644
--- a/pyload/utils/__init__.py
+++ b/pyload/utils/__init__.py
@@ -256,8 +256,10 @@ def versiontuple(v): #: By kindall (http://stackoverflow.com/a/11887825)
def load_translation(name, locale, default="en"):
""" Load language and return its translation object or None """
- from traceback import print_exc
+
from os.path import join
+ from traceback import print_exc
+
try:
gettext.setpaths([join(os.sep, "usr", "share", "pyload", "locale"), None])
translation = gettext.translation(name, join(pypath, "locale"),