-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n to RECAPTCHA_ERROR_CODES #198
Comments
I can make a PR, just fixed it for myself. |
@sobolevn that would be great. I was trying to, but I'm not very familiar with i18n. 😖 If you come across any other strings that need to be translatable, go ahead and mark them as well if you want. |
Any plans to support https://www.transifex.com/ ? |
I don't think we have the resources for transifex/crowdin/etc. Or does support not involve buying a plan? That would be a separate issue though. |
I'd imagine this would just be slurping in some localized JSON blob in a constructor (e.g. validators_en.json, validators_ru.json) -- 3rd party stuff seems like overkill. |
I have done it using I guess I will be able to submit it for review pretty soon. |
Sorry, forgot to mention this issue: #253 |
An approach such as https://github.com/wtforms/wtforms/tree/master/src/wtforms/locale is welcome. |
Weblate is free for FOSS. See the Libre plan at the bottom of https://weblate.org/en/hosting/ and use the same account for all repos under wtforms organization. |
It will be helpful if these messages could be translated without modify locally this file:
flask_wtf/recaptcha/validators.py
RECAPTCHA_ERROR_CODES = {
'missing-input-secret': 'The secret parameter is missing.',
'invalid-input-secret': 'The secret parameter is invalid or malformed.',
'missing-input-response': 'The response parameter is missing.',
'invalid-input-response': 'The response parameter is invalid or malformed.'
}
The text was updated successfully, but these errors were encountered: