From f8029692bffbb286b82c1d0d9b61ffb5445f6d7c Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 6 Sep 2007 20:07:12 +0000 Subject: [PATCH] windows locale skipping --- src/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index bc3019b53..ef4fb4fd7 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -33,14 +33,16 @@ import gettext import locale import os +import platform from common import INSTALL_PREFIX APP = 'deluge' DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale') locale.setlocale(locale.LC_ALL, '') -locale.bindtextdomain(APP, DIR) -locale.textdomain(APP) +if platform.system() != "Windows": + locale.bindtextdomain(APP, DIR) + locale.textdomain(APP) gettext.bindtextdomain(APP, DIR) gettext.textdomain(APP) gettext.install(APP, DIR)