summaryrefslogtreecommitdiffstats
path: root/module/web/webinterface.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r--module/web/webinterface.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py
index 68724e3f6..ec8b2e56c 100644
--- a/module/web/webinterface.py
+++ b/module/web/webinterface.py
@@ -18,8 +18,9 @@
"""
import sys
-import gettext
+import module.common.pylgettext as gettext
+import os
from os.path import join, abspath, dirname, exists
from os import makedirs
@@ -98,8 +99,9 @@ if PREFIX:
else:
env.filters["url"] = lambda x: PREFIX + x if x.startswith("/") else x
+gettext.setpaths([join(os.sep, "usr", "share", "pyload", "locale"), None])
translation = gettext.translation("django", join(PYLOAD_DIR, "locale"),
- languages=["en", config.get("general", "language")])
+ languages=[config.get("general", "language"), "en"],fallback=True)
translation.install(True)
env.install_gettext_translations(translation)