Skip to content
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

Open
ar-anvd opened this issue Sep 15, 2015 · 9 comments
Open

i18n to RECAPTCHA_ERROR_CODES #198

ar-anvd opened this issue Sep 15, 2015 · 9 comments

Comments

@ar-anvd
Copy link

ar-anvd commented Sep 15, 2015

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.'
}

@sobolevn
Copy link

I can make a PR, just fixed it for myself.

@davidism
Copy link
Member

davidism commented Jul 13, 2016

@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.

@sobolevn
Copy link

Any plans to support https://www.transifex.com/ ?

@davidism
Copy link
Member

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.

@tristanfisher
Copy link

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.

@sobolevn
Copy link

I have done it using babel. I have used the same approach as wtform. Is it fine by everyone?

I guess I will be able to submit it for review pretty soon.

@sobolevn
Copy link

Sorry, forgot to mention this issue: #253

@davidism davidism modified the milestone: v0.15 Jan 6, 2017
@davidism davidism modified the milestones: v0.15, 0.16 May 24, 2021
@davidism davidism removed this from the v0.16 milestone Nov 7, 2021
@PanderMusubi
Copy link

An approach such as https://github.com/wtforms/wtforms/tree/master/src/wtforms/locale is welcome.

@PanderMusubi
Copy link

PanderMusubi commented Jan 8, 2024

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants