summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-07 19:22:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-07 19:22:02 +0100
commitb575e03d6621cd236df7de3879507efa38ad16b8 (patch)
treeb454c2336f6dbc2048863b2457af2810a0ea1cc3 /module/web
parentnew l18n files, closed #448 (diff)
downloadpyload-b575e03d6621cd236df7de3879507efa38ad16b8.tar.xz
closed #436
Diffstat (limited to 'module/web')
-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)