diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-05-26 09:22:35 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-05-26 09:22:35 -0700 |
commit | 93f47c6490b1ac6460c0ea0563b6e375275bd4e8 (patch) | |
tree | 2fbd373379fa973d3985018d112baeff68200e47 /Mailman | |
parent | 9eb3476df5165581a809f8c928ab42b32b766ec3 (diff) | |
download | mailman2-93f47c6490b1ac6460c0ea0563b6e375275bd4e8.tar.gz mailman2-93f47c6490b1ac6460c0ea0563b6e375275bd4e8.tar.xz mailman2-93f47c6490b1ac6460c0ea0563b6e375275bd4e8.zip |
Internationalize the noscript note added to reCAPTCHA.
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Cgi/listinfo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index 4f30108c..78fda942 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -245,14 +245,15 @@ def list_listinfo(mlist, lang): replacements['<mm-fullname-box>'] = mlist.FormatBox('fullname', size=30) # If reCAPTCHA is enabled, display its user interface if mm_cfg.RECAPTCHA_SITE_KEY: + noscript = _('This form requires JavaScript.') replacements['<mm-recaptcha-ui>'] = ( """<tr><td> </td><td> - <noscript>This form requires JavaScript.</noscript> + <noscript>%s</noscript> <script src="https://www.google.com/recaptcha/api.js?hl=%s"> </script> <div class="g-recaptcha" data-sitekey="%s"></div> </td></tr>""" - % (lang, mm_cfg.RECAPTCHA_SITE_KEY)) + % (noscript, lang, mm_cfg.RECAPTCHA_SITE_KEY)) else: replacements['<mm-recaptcha-ui>'] = '' |