summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-10 21:59:31 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-10 21:59:31 +0100
commit6c4eabfc4b686a72224ff06cb56c385bfc489790 (patch)
tree913239e4a2d994e813134b94f66a49eec9a4b201 /pyLoadCli.py
parentwebif patch #75 (thx kepheus) (diff)
downloadpyload-6c4eabfc4b686a72224ff06cb56c385bfc489790.tar.xz
Webinterface with lighttpd! locale fixing try.
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 03a44cc02..e4238b28d 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -431,7 +431,16 @@ if __name__ == "__main__":
config = xmlconfig.getConfig()
translation = gettext.translation("pyLoadCli", join(abspath(dirname(__file__)), "locale"), languages=[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)
if len(sys.argv) > 1: