From ec50c9cb41472ba386bddae505658cc68d283820 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 5 Jul 2008 23:43:38 +0000 Subject: [PATCH] windows fix --- deluge/core/core.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index 806002dd4..66877b2af 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -149,11 +149,15 @@ class Core( self.register_introspection_functions() # Initialize gettext - locale.setlocale(locale.LC_MESSAGES, '') - locale.bindtextdomain("deluge", + if deluge.common.windows_check(): + locale.set_localte(locale.LC_ALL, '') + else: + locale.setlocale(locale.LC_MESSAGES, '') + locale.bindtextdomain("deluge", pkg_resources.resource_filename( "deluge", "i18n")) - locale.textdomain("deluge") + locale.textdomain("deluge") + gettext.bindtextdomain("deluge", pkg_resources.resource_filename( "deluge", "i18n"))