freebsd-ports/net-p2p/deluge/files/patch-deluge_ui_webui_deluge_webserver.py
Jeremy Messenger fe36f152b7 net-p2p/deluge: Update to 1.1.0.
net-p2p/deluge05: Repocopied from net-p2p/deluge and update to 0.5.9.4. This
is for anyone that do not want to move to 1.1.0.

Repocopy:	marcus
2009-01-19 04:18:09 +00:00

19 lines
921 B
Python

--- deluge/ui/webui/deluge_webserver.py.orig 2009-01-17 11:35:46.000000000 -0600
+++ deluge/ui/webui/deluge_webserver.py 2009-01-17 11:35:59.000000000 -0600
@@ -35,11 +35,11 @@
# 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"):
- locale.textdomain("deluge")
+# locale.setlocale(locale.LC_ALL, '')
+# if hasattr(locale, "bindtextdomain"):
+# locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
+# if hasattr(locale, "textdomain"):
+# locale.textdomain("deluge")
gettext.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
gettext.textdomain("deluge")
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))