On 17 mai, 13:54, pierreth <[email protected]> wrote: > - 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
After further reflexion, I realize that it would be unreasonable to go through all the languages files accepted by the user. What would be more reasonable is to try a more generic language if a translation is not found in the language defined by T.accepted_language. So if T.accepted_language == 'fr-ca' and the translation is not present in 'fr-ca.py' then we try to find it in 'fr.py'. Of course we stop the translation as soon as the language we are searching is the current one (the language of the app itself).

