summaryrefslogtreecommitdiffstats
path: root/deluge/i18n/util.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-02-20 17:25:42 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2021-02-20 17:29:36 +0000
commitf331b6c754dc23797b1ebccda1e38dd048ed0468 (patch)
tree15f2631bbb5dd115e98d08c3987c056461db5c12 /deluge/i18n/util.py
parent1022448e4fbd7934b69b28abb3ff0c474b7b16ec (diff)
downloaddeluge-f331b6c754dc23797b1ebccda1e38dd048ed0468.tar.gz
deluge-f331b6c754dc23797b1ebccda1e38dd048ed0468.tar.bz2
deluge-f331b6c754dc23797b1ebccda1e38dd048ed0468.zip
[GTKUI] Fix torrentdetails tab bar position not saving
The GTKUI tests were failing and the saved config for the tab bar position was not being restored. Fixed by moving the setting of notebook.tabs_pos to TorrentDetail init. Replaced more deprecated methods that were showing up in tests.
Diffstat (limited to 'deluge/i18n/util.py')
-rw-r--r--deluge/i18n/util.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/deluge/i18n/util.py b/deluge/i18n/util.py
index 90568fc5b..d33acaadf 100644
--- a/deluge/i18n/util.py
+++ b/deluge/i18n/util.py
@@ -108,7 +108,6 @@ def setup_translation():
locale.textdomain(I18N_DOMAIN)
gettext.bindtextdomain(I18N_DOMAIN, translations_path)
- gettext.bind_textdomain_codeset(I18N_DOMAIN, 'UTF-8')
gettext.textdomain(I18N_DOMAIN)
# Workaround for Python 2 unicode gettext (keyword removed in Py3).
@@ -139,7 +138,6 @@ def setup_translation():
I18N_DOMAIN, translations_path.encode(sys.getfilesystemencoding())
)
libintl.textdomain(I18N_DOMAIN)
- libintl.bind_textdomain_codeset(I18N_DOMAIN, 'UTF-8')
libintl.gettext.restype = ctypes.c_char_p
except Exception as ex: