mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-20 08:28:33 +00:00
Fix warning related to gettext
This commit is contained in:
parent
15c250e152
commit
d6c96d6291
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def setup_translation():
|
||||||
# Workaround for Python 2 unicode gettext (keyword removed in Py3).
|
# Workaround for Python 2 unicode gettext (keyword removed in Py3).
|
||||||
kwargs = {} if not deluge.common.PY2 else {'unicode': True}
|
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']
|
builtins.__dict__['_n'] = builtins.__dict__['ngettext']
|
||||||
|
|
||||||
libintl = None
|
libintl = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue