summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
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 /pyLoadCore.py
parentnew l18n files, closed #448 (diff)
downloadpyload-b575e03d6621cd236df7de3879507efa38ad16b8.tar.xz
closed #436
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py5
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']