summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-02-11 17:27:22 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-02-11 17:27:22 +0100
commit2e844dbabf8b17390ebdb2159cace48cfdd19a34 (patch)
treea3e8bc4cd46ac700bb2de0221b6c70f7ff1a5d28 /pyLoadGui.py
parentcnl, EOL, path fixes (diff)
downloadpyload-2e844dbabf8b17390ebdb2159cace48cfdd19a34.tar.xz
locale fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index b4a518036..5cf36242d 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -59,16 +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)])
-
- 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.mainWindow = MainWindow()
self.pwWindow = PWInputWindow()