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 /pyLoadGui.py | |
parent | locale fix (diff) | |
download | pyload-80cc43e0ceec2970d13cc7db62473456ba246923.tar.xz |
locale fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index 5cf36242d..9e1c9d354 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -59,7 +59,7 @@ class main(QObject): lang = parser.xml.elementsByTagName("language").item(0).toElement().text() translation = gettext.translation("pyLoadGui", join(dirname(__file__), "locale"), languages=[str(lang)]) - 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.mainWindow = MainWindow() self.pwWindow = PWInputWindow() |