Set locale to the user's default settings in the gtkui

This commit is contained in:
John Garland 2010-09-20 02:43:07 +10:00
parent e23a6b852a
commit 16c38cd027
1 changed files with 1 additions and 0 deletions

View File

@ -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"):