mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #1637: UnicodeDecodeError from 'deluge-console --help' with other languages
This commit is contained in:
parent
456f660878
commit
b301051cdd
1 changed files with 1 additions and 3 deletions
|
@ -698,9 +698,7 @@ def setup_translations(setup_pygtk=False):
|
||||||
locale.bindtextdomain("deluge", translations_path)
|
locale.bindtextdomain("deluge", translations_path)
|
||||||
if hasattr(locale, "textdomain"):
|
if hasattr(locale, "textdomain"):
|
||||||
locale.textdomain("deluge")
|
locale.textdomain("deluge")
|
||||||
gettext.bindtextdomain("deluge", translations_path)
|
gettext.install("deluge", translations_path, unicode=True)
|
||||||
gettext.textdomain("deluge")
|
|
||||||
gettext.install("deluge", translations_path)
|
|
||||||
if setup_pygtk:
|
if setup_pygtk:
|
||||||
# Even though we're not using glade anymore, let's set it up so that
|
# Even though we're not using glade anymore, let's set it up so that
|
||||||
# plugins still using it get properly translated.
|
# plugins still using it get properly translated.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue