Hello,

It seems that web2py takes care of only the first language listed in
the browser request. The other languages are not taken into account.

For example, in my browser preferences, I have:

fr-ca
fr
fr-fr
en
en-us

But there is only one value for T.accepted_language and in my case I
have fr-ca.

I propose a modification for web2py to take in consideration other
languages:

- T.accepted_language would stay the same.
- A new T.accepted_languages, with an 's', would be created to list
all the languages accepted by the users.
- When searching for a translation, web2py will go through all the
files for T.accepted_languages to find the best match

What do you think of this idea?

Reply via email to