summaryrefslogtreecommitdiff
path: root/net-p2p/deluge/files/deluge-2.0.3-gettext.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-25 11:37:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-25 11:37:10 +0100
commit38423c67c8a23f6a1bc42038193182e2da3116eb (patch)
tree04e2cf4bd43601b77daa79fe654e409187093c5e /net-p2p/deluge/files/deluge-2.0.3-gettext.patch
parent623ee73d661e5ed8475cb264511f683407d87365 (diff)
gentoo resync : 25.04.2020
Diffstat (limited to 'net-p2p/deluge/files/deluge-2.0.3-gettext.patch')
-rw-r--r--net-p2p/deluge/files/deluge-2.0.3-gettext.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/deluge/files/deluge-2.0.3-gettext.patch b/net-p2p/deluge/files/deluge-2.0.3-gettext.patch
new file mode 100644
index 000000000000..41cf743749c6
--- /dev/null
+++ b/net-p2p/deluge/files/deluge-2.0.3-gettext.patch
@@ -0,0 +1,11 @@
+--- a/deluge/i18n/util.py
++++ b/deluge/i18n/util.py
+@@ -114,7 +114,7 @@
+ # Workaround for Python 2 unicode gettext (keyword removed in Py3).
+ kwargs = {} if not deluge.common.PY2 else {'unicode': True}
+
+- gettext.install(I18N_DOMAIN, translations_path, names='ngettext', **kwargs)
++ gettext.install(I18N_DOMAIN, translations_path, names=['ngettext'], **kwargs)
+ builtins.__dict__['_n'] = builtins.__dict__['ngettext']
+
+ libintl = None