diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 14:55:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 14:55:20 +0000 |
commit | 17e5409f1218da4ac76e9c352abd60bd70e470c0 (patch) | |
tree | e46d6e8ce16d83ae63907f72e5263b1cee88503a /debian/patches/0001-Fix-warning-related-to-gettext.patch | |
parent | Adding upstream version 2.0.3. (diff) | |
download | deluge-17e5409f1218da4ac76e9c352abd60bd70e470c0.tar.xz deluge-17e5409f1218da4ac76e9c352abd60bd70e470c0.zip |
Adding debian version 2.0.3-4.debian/2.0.3-4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0001-Fix-warning-related-to-gettext.patch')
-rw-r--r-- | debian/patches/0001-Fix-warning-related-to-gettext.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0001-Fix-warning-related-to-gettext.patch b/debian/patches/0001-Fix-warning-related-to-gettext.patch new file mode 100644 index 0000000..cc385d6 --- /dev/null +++ b/debian/patches/0001-Fix-warning-related-to-gettext.patch @@ -0,0 +1,25 @@ +From d6c96d629183e8bab2167ef56457f994017e7c85 Mon Sep 17 00:00:00 2001 +From: neeshy <neeshy@tfwno.gf> +Date: Sat, 18 Apr 2020 23:23:51 -0400 +Subject: Fix warning related to gettext + +--- + deluge/i18n/util.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deluge/i18n/util.py b/deluge/i18n/util.py +index bd002f7a2..90568fc5b 100644 +--- a/deluge/i18n/util.py ++++ b/deluge/i18n/util.py +@@ -114,7 +114,7 @@ def setup_translation(): + # 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 +-- +2.20.1 + |