diff options
Diffstat (limited to 'net-p2p/deluge/files/patch-src___init__.py')
-rw-r--r-- | net-p2p/deluge/files/patch-src___init__.py | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/net-p2p/deluge/files/patch-src___init__.py b/net-p2p/deluge/files/patch-src___init__.py index 442d86f4263f..b63d5814cebc 100644 --- a/net-p2p/deluge/files/patch-src___init__.py +++ b/net-p2p/deluge/files/patch-src___init__.py @@ -1,15 +1,27 @@ ---- src/__init__.py.orig 2007-08-05 13:08:25.000000000 -0500 -+++ src/__init__.py 2007-08-05 13:08:40.000000000 -0500 -@@ -6,9 +6,9 @@ +--- src/__init__.py.orig 2007-10-25 17:19:53.000000000 -0500 ++++ src/__init__.py 2007-10-25 17:21:29.000000000 -0500 +@@ -37,15 +37,15 @@ APP = 'deluge' - DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale') --locale.setlocale(locale.LC_ALL, '') --locale.bindtextdomain(APP, DIR) --locale.textdomain(APP) -+#locale.setlocale(locale.LC_ALL, '') -+#locale.bindtextdomain(APP, DIR) -+#locale.textdomain(APP) + DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale') +-if not common.windows_check(): +- locale.setlocale(locale.LC_MESSAGES, '') +- locale.bindtextdomain(APP, DIR) +- locale.textdomain(APP) +-else: +- import gtk.glade +- locale.setlocale(locale.LC_ALL, '') +- gtk.glade.bindtextdomain(APP, DIR) +- gtk.glade.textdomain(APP) ++#if not common.windows_check(): ++# locale.setlocale(locale.LC_MESSAGES, '') ++# locale.bindtextdomain(APP, DIR) ++# locale.textdomain(APP) ++#else: ++# import gtk.glade ++# locale.setlocale(locale.LC_ALL, '') ++# gtk.glade.bindtextdomain(APP, DIR) ++# gtk.glade.textdomain(APP) gettext.bindtextdomain(APP, DIR) gettext.textdomain(APP) gettext.install(APP, DIR) |