diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-07 19:22:02 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-07 19:22:02 +0100 |
commit | b575e03d6621cd236df7de3879507efa38ad16b8 (patch) | |
tree | b454c2336f6dbc2048863b2457af2810a0ea1cc3 /module/web | |
parent | new l18n files, closed #448 (diff) | |
download | pyload-b575e03d6621cd236df7de3879507efa38ad16b8.tar.xz |
closed #436
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/webinterface.py | 6 |
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) |