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 /pyLoadCore.py | |
parent | new l18n files, closed #448 (diff) | |
download | pyload-b575e03d6621cd236df7de3879507efa38ad16b8.tar.xz |
closed #436
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index cbc270036..99d8642bd 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -25,7 +25,7 @@ CURRENT_VERSION = '0.4.8' import __builtin__ from getopt import getopt, GetoptError -import gettext +import module.common.pylgettext as gettext from imp import find_module import logging import logging.handlers @@ -288,8 +288,9 @@ class Core(object): self.config = ConfigParser() + gettext.setpaths([join(os.sep, "usr", "share", "pyload", "locale"), None]) translation = gettext.translation("pyLoad", self.path("locale"), - languages=["en", self.config['general']['language']]) + languages=[self.config['general']['language'],"en"],fallback=True) translation.install(True) self.debug = self.doDebug or self.config['general']['debug_mode'] |