diff options
author | neeshy <neeshy@tfwno.gf> | 2020-04-18 23:23:51 -0400 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2020-04-23 17:14:24 +0100 |
commit | d6c96d629183e8bab2167ef56457f994017e7c85 (patch) | |
tree | b1de1c88fed2c508076e7c82576232b0654c68ed | |
parent | 15c250e15252fb9131a1b4c39226fcd43d45fc08 (diff) | |
download | deluge-d6c96d629183e8bab2167ef56457f994017e7c85.tar.gz deluge-d6c96d629183e8bab2167ef56457f994017e7c85.tar.bz2 deluge-d6c96d629183e8bab2167ef56457f994017e7c85.zip |
Fix warning related to gettext
-rw-r--r-- | deluge/i18n/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |