summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-07-10 16:45:02 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2011-07-10 16:45:02 +0100
commitb301051cdd3d8b78cad071bf04577518607c5cfd (patch)
treefbe8118ec27c436b2ed1f0507322a9d0f898cb87
parent456f6608780f7b280ac7bfa8dbbde9df7f34639e (diff)
downloaddeluge-b301051cdd3d8b78cad071bf04577518607c5cfd.tar.gz
deluge-b301051cdd3d8b78cad071bf04577518607c5cfd.tar.bz2
deluge-b301051cdd3d8b78cad071bf04577518607c5cfd.zip
Fix #1637: UnicodeDecodeError from 'deluge-console --help' with other languages
-rw-r--r--deluge/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/deluge/common.py b/deluge/common.py
index caa45b604..f7784da40 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.