On May 17, 2012, at 5:21 AM, yus wrote: > I am using web2py for a multilingual web-site with. > > I want to manage language setting the same way that it is managed in the > admin application (that is through session and cookies I guess), but at the > sale time I want the language to be explicitly indicated on the url structure > as > > mysite.com/application/LANGUAGE/controller/function > > The reason is that I want to have the url structure that GOOGLE recommends > for websites with international content: > > http://support.google.com/webmasters/bin/answer.py?hl=en&answer=182192#1 > > > My question is > > How can I add LANGUAGE to the web2py visible url? > > That is > > Web2py gives me > > application/controller/function > > and I need it to become > > application/LANGUAGE/controller/function
Do you use URL routing at all? The parametric router provides support for what you're after. There's a little documentation in the book, IIRC, and a recipe in the cookbook. Another good source of routing "documentation" is the unit-test file in gluon/tests.

