Module: deluge Branch: master Commit: b301051cdd3d8b78cad071bf04577518607c5cfd
Author: Calum Lind <[email protected]> Date: Sun Jul 10 16:45:02 2011 +0100 Fix #1637: UnicodeDecodeError from 'deluge-console --help' with other languages --- deluge/common.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index caa45b6..f7784da 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -698,9 +698,7 @@ def setup_translations(setup_pygtk=False): locale.bindtextdomain("deluge", translations_path) if hasattr(locale, "textdomain"): locale.textdomain("deluge") - gettext.bindtextdomain("deluge", translations_path) - gettext.textdomain("deluge") - gettext.install("deluge", translations_path) + gettext.install("deluge", translations_path, unicode=True) if setup_pygtk: # Even though we're not using glade anymore, let's set it up so that # plugins still using it get properly translated. -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
