[Logging] Fix Python 3.8 compatibility: https://git.deluge-torrent.org/deluge/commit/?h=develop&id=351664ec071daa04161577c6a1c949ed0f2c3206 [Logging] Fix findCaller with unknown source: https://git.deluge-torrent.org/deluge/commit/?h=develop&id=5e06aee5c8846f94bd5fcc209132dacf06de781f Fix warning related to gettext: https://git.deluge-torrent.org/deluge/commit/?h=develop&id=d6c96d629183e8bab2167ef56457f994017e7c85 Diff from Rob Schmersel, thanks!
15 lines
615 B
Plaintext
15 lines
615 B
Plaintext
$OpenBSD: patch-deluge_i18n_util_py,v 1.1 2021/11/07 12:14:37 rsadowski Exp $
|
|
|
|
Index: deluge/i18n/util.py
|
|
--- deluge/i18n/util.py.orig
|
|
+++ 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
|