diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-05-27 02:06:40 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-05-27 02:06:40 +0900 |
commit | fc361f4c04a6ff83c3e5dd7c56cf902dbbf87609 (patch) | |
tree | 3d6d7b08cba050ce65d87699efcf7623f6674b4a /Mailman/Cgi/listinfo.py | |
parent | ea6edf95c50c4c80005397def9a827eb4f81ac6f (diff) | |
parent | 93f47c6490b1ac6460c0ea0563b6e375275bd4e8 (diff) | |
download | mailman2-fc361f4c04a6ff83c3e5dd7c56cf902dbbf87609.tar.gz mailman2-fc361f4c04a6ff83c3e5dd7c56cf902dbbf87609.tar.xz mailman2-fc361f4c04a6ff83c3e5dd7c56cf902dbbf87609.zip |
merge lp:mailman/2.1 Rev 1757 and then update ja translation for it
Diffstat (limited to 'Mailman/Cgi/listinfo.py')
-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>'] = '' |