From e578864709ed56d4f4c3d46ba2516d494fdfecd1 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 30 Jan 2018 08:21:50 -0800 Subject: Corrected i18n from rev. 1738 and updated message catalogs. --- Mailman/Cgi/subscribe.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index 301d1733..3977268c 100755 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -38,6 +38,7 @@ from Mailman.Logging.Syslog import syslog SLASH = '/' ERRORSEP = '\n\n

' +COMMASPACE = ', ' # Set up i18n _ = i18n._ @@ -148,10 +149,11 @@ def process_form(mlist, doc, cgidata, lang): captcha_response = json.load(httpresp) httpresp.close() if not captcha_response['success']: - results.append(_('reCAPTCHA validation failed: %s' % - ', '.join(captcha_response['error-codes']))) + e_codes = COMMASPACE.join(captcha_response['error-codes']) + results.append(_('reCAPTCHA validation failed: %(e_codes)s')) except urllib2.URLError as e: - results.append(_('reCAPTCHA could not be validated: %s' % e.reason)) + e_reason = e.reason + results.append(_('reCAPTCHA could not be validated: %(e_reason)s')) # Are we checking the hidden data? if mm_cfg.SUBSCRIBE_FORM_SECRET: -- cgit v1.2.3