diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-11 17:27:22 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-11 17:27:22 +0100 |
commit | 2e844dbabf8b17390ebdb2159cace48cfdd19a34 (patch) | |
tree | a3e8bc4cd46ac700bb2de0221b6c70f7ff1a5d28 /pyLoadCore.py | |
parent | cnl, EOL, path fixes (diff) | |
download | pyload-2e844dbabf8b17390ebdb2159cace48cfdd19a34.tar.xz |
locale fix
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 01646212f..b2ee524a6 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -110,15 +110,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']]) - try: - translation.ugettext("äöü") - unicode = True - except: - unicode = False - - #@TODO cleaner method, if possible - - translation.install(unicode) + translation.install(unicode=(False if sys.stdout.encoding == "ascii" else True)) self.check_install("Crypto", _("pycrypto to decode container files")) self.check_install("Image", _("Python Image Libary (PIL) for captha reading")) @@ -641,4 +633,4 @@ if __name__ == "__main__": except KeyboardInterrupt: pyload_core.shutdown() pyload_core.logger.info(_("killed pyLoad from Terminal")) - exit()
\ No newline at end of file + exit() |