[or-cvs] [bridgedb/master] Internationalize the ‘e-mail requests broken’ message.

nickm at torproject.org nickm at torproject.org
Mon Feb 14 20:54:15 UTC 2011


commit 5faa1d3edea943f8b6b6e8f5e74ed70f18d17fa3
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Sat Dec 11 19:49:27 2010 -0800

    Internationalize the ‘e-mail requests broken’ message.
---
 lib/bridgedb/I18n.py   |    2 ++
 lib/bridgedb/Server.py |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/bridgedb/I18n.py b/lib/bridgedb/I18n.py
index 2774a58..550b0b4 100644
--- a/lib/bridgedb/I18n.py
+++ b/lib/bridgedb/I18n.py
@@ -46,4 +46,6 @@ will change every few days, so check back periodically if you need more
 bridge addresses."""),
  # BRIDGEDB_TEXT[7]
  _("""(no bridges currently available)""")
+ # BRIDGEDB_TEXT[8]
+ _("""(e-mail requests not currently supported)""")
 ]
diff --git a/lib/bridgedb/Server.py b/lib/bridgedb/Server.py
index 95b3b51..ce4caf2 100644
--- a/lib/bridgedb/Server.py
+++ b/lib/bridgedb/Server.py
@@ -99,7 +99,7 @@ class WebResource(twisted.web.resource.Resource):
             email_domain_list = "<ul>" \
                 + "".join(("<li>%s</li>"%d for d in self.domains)) + "</ul>"
         else:
-            email_domain_list = "<p>E-mail requests not supported!</p>"
+            email_domain_list = "<p>" + t.gettext(I18n.BRIDGEDB_TEXT[8]) + "</p>"
         html_msg = "<html><body>" \
                    + "<p>" + t.gettext(I18n.BRIDGEDB_TEXT[0]) \
                    + "<pre id=\"bridges\">" \





More information about the tor-commits mailing list