mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
Set locale to the user's default settings in the gtkui
This commit is contained in:
parent
e23a6b852a
commit
16c38cd027
@ -47,6 +47,7 @@ import sys
|
|||||||
|
|
||||||
# Initialize gettext
|
# Initialize gettext
|
||||||
try:
|
try:
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
if hasattr(locale, "bindtextdomain"):
|
if hasattr(locale, "bindtextdomain"):
|
||||||
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||||
if hasattr(locale, "textdomain"):
|
if hasattr(locale, "textdomain"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user