Hi David, You can do this a number of ways. We have an application here http://code.google.com/p/uc-language/ you can take a look at. We implemented language changing using a session variable which allows us to test.
You can clone the application to your web2py directory and run it. Note that the language changing is done via a Web2py plugin which basically means that to look at the code (or extract it to install it as a plugin in another application) you would go to the plugin section. Once in the plugin section you can extract the plugin or just browse the .py file in the plugin's model area. The plugin includes a language changing menu and some Web2py variables of interest with some short variable descriptions. To enable the the language changing menu you will need to take a look at layout.html in the application for the line {{include 'pluging_language/menu/_site_menu...}}, copy that include and place that in the target applications layout.html, install the plugin and you should be good to go. If you can think of any improvements or have any questions let me know here. Cheers, Chris Voice of Access On 26 août, 05:53, David Marko <dma...@tiscali.cz> wrote: > How can I switch language in application in a way, that app will > remember this? T.force() seems to just switch translations in one > request, but how to make scenario, that user will click on particular > language flag icon and since that application will display in selected > translation. I guess some cookie must be involved but not sure if > there is some mechanism in web2py already. > > Thanks, for any hint, > David