summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 483750152..5ea4b43c5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -108,8 +108,16 @@ class Core(object):
self.do_kill = False
self.do_restart = False
translation = gettext.translation("pyLoad", join(self.path, "locale"), languages=[self.config['general']['language']])
- translation.install(unicode=(False if sys.stdout.encoding == "ascii" else True))
+ try:
+ translation.ugettext("äöü")
+ unicode = True
+ except:
+ unicode = False
+ #@TODO cleaner method, if possible
+
+ translation.install(unicode)
+
self.check_install("Crypto", _("pycrypto to decode container files"))
self.check_install("Image", _("Python Image Libary (PIL) for captha reading"))
self.check_install("pycurl", _("pycurl for lower memory footprint while downloading"))