You can use the admin page as a example of how to create a language select.
I copied the following code with some modifications:
web2py/applications/admin/views/layout.html
{{=T('Languages')}}
{{if hasattr(T,'get_possible_languages_info'):}}
{{for langinfo in sorted([(code,info[1])
You could add a dropdown for language selection and when the user makes a
selection, store the value in the session. Then use T.force('[language
code]') in a model file to force translations to the particular language.
If you want the selection to be remembered across sessions, you could set a
2 matches
Mail list logo