mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Set locale to the user's default settings in the gtkui
This commit is contained in:
parent
7cd210a59b
commit
eb37c91866
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ import sys
|
|||
|
||||
# Initialize gettext
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
if hasattr(locale, "bindtextdomain"):
|
||||
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||
if hasattr(locale, "textdomain"):
|
||||
|
|
Loading…
Add table
Reference in a new issue