From a429fb33c468251a86caadfd6c231d494c99205e Mon Sep 17 00:00:00 2001 From: lipis-z Date: Tue, 26 Aug 2014 11:01:42 +0200 Subject: [PATCH] Updated the translations for reCAPTCHA Mainly because lately it doesn't give always two words, but only one so asking to `Type the two words` was misleading. So I took the complete list from: https://www.google.com/recaptcha/api/js/recaptcha.js and added the missing ones as well. - Added `privacy_and_terms`, `image_alt_text` to the translations - Removed the `:` from text - Changed all the text to match exactly the original source - Sorted by name --- flask_wtf/recaptcha/widgets.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/flask_wtf/recaptcha/widgets.py b/flask_wtf/recaptcha/widgets.py index 8c5776e1..d985fe12 100644 --- a/flask_wtf/recaptcha/widgets.py +++ b/flask_wtf/recaptcha/widgets.py @@ -64,15 +64,17 @@ def __call__(self, field, error=None, **kwargs): options = { 'theme': 'clean', 'custom_translations': { - 'visual_challenge': _('Get a visual challenge'), 'audio_challenge': _('Get an audio challenge'), - 'refresh_btn': _('Get a new challenge'), - 'instructions_visual': _('Type the two words:'), - 'instructions_audio': _('Type what you hear:'), - 'help_btn': _('Help'), - 'play_again': _('Play sound again'), 'cant_hear_this': _('Download sound as MP3'), + 'help_btn': _('Help'), + 'image_alt_text': _('reCAPTCHA challenge image'), 'incorrect_try_again': _('Incorrect. Try again.'), + 'instructions_audio': _('Type what you hear'), + 'instructions_visual': _('Type the text'), + 'play_again': _('Play sound again'), + 'privacy_and_terms': _('Privacy & Terms'), + 'refresh_btn': _('Get a new challenge'), + 'visual_challenge': _('Get a visual challenge'), } }