diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-02-11 21:25:27 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-02-11 21:25:27 +0100 |
commit | 80cc43e0ceec2970d13cc7db62473456ba246923 (patch) | |
tree | 2246f18222f4b4a1c50a603d6fa2542b7d9eef25 /pyLoadCore.py | |
parent | locale fix (diff) | |
download | pyload-80cc43e0ceec2970d13cc7db62473456ba246923.tar.xz |
locale fix
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index b2ee524a6..0c144b3a6 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -45,6 +45,7 @@ import subprocess from sys import argv from sys import executable from sys import exit +import sys from sys import path from sys import stdout from sys import version_info @@ -110,7 +111,7 @@ class Core(object): self.do_kill = False self.do_restart = False translation = gettext.translation("pyLoad", self.make_path("locale"), languages=[self.config['general']['language']]) - translation.install(unicode=(False if sys.stdout.encoding == "ascii" else True)) + translation.install(unicode=(True if sys.stdout.encoding.lower().startswith("utf") else False)) self.check_install("Crypto", _("pycrypto to decode container files")) self.check_install("Image", _("Python Image Libary (PIL) for captha reading")) |