Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

i18n for validation errors #3

Open
leplatrem opened this issue Apr 22, 2012 · 3 comments
Open

i18n for validation errors #3

leplatrem opened this issue Apr 22, 2012 · 3 comments

Comments

@leplatrem
Copy link
Contributor

  • find a way to specify expected language
@almet
Copy link
Member

almet commented Apr 22, 2012

I think this can be a part of the HTTP specification, because there
already is a "accept-language" header that we could use for this.

Isn't it enough?

@leplatrem
Copy link
Contributor Author

Yep, should be okay :)

I posted this issue as a reminder, so that we don't get stuck eventually

@leplatrem
Copy link
Contributor Author

Colander seems to manage i18n already, it should be plugged with accept-language then.

What about translations of fields ? descriptions ? choices ? Should they be pushed along with model definition ?

"description": "age?", "description:en-US": "age bro'?", "description:fr": "âge?",

It means we have to define choices as tuples :

"choices": [["big","Big"], ["small", "Small"]], "choices:fr": [["big","Grand"], ["small", "Petit"]]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants