summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtkui/gtkui.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtkui/gtkui.py')
-rw-r--r--deluge/ui/gtkui/gtkui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py
index cfa3db24a..b9c6eb5df 100644
--- a/deluge/ui/gtkui/gtkui.py
+++ b/deluge/ui/gtkui/gtkui.py
@@ -119,7 +119,6 @@ class GtkUI:
# 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"):
@@ -128,7 +127,8 @@ class GtkUI:
gettext.textdomain("deluge")
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))
except Exception, e:
- log.error("Unable to initialize gettext/locale: %s", e)
+ log.error("Unable to initialize gettext/locale!")
+ log.exception(e)
# Setup signals
try: