[web2py] Language selection and routing with pattern based router

2014-09-25 Thread Robin Manoli
Hey, I wonder if the feature for parameter based routing is also available or possible to implement with pattern based routing. As from what I can read, it does the following: - routes /app/lang/ctrl/func to /app/ctrl/func - sets request.uri_language to lang - routes /lang/static/file (shouldn't

Re: [web2py] Language selection

2011-05-10 Thread Marin Pranjic
You can use T.force('en') T.force('it') T.force('es') based on request.vars or arguments ex: http://myapp/?lang?es T.force(request.vars.lang) not sure how to do it with routes On Sun, May 8, 2011 at 11:47 PM, Miguel Morillo Iruela < asellus2...@gmail.com> wrote: > Hello, > > I wonder if it i

[web2py] Language selection

2011-05-08 Thread Miguel Morillo Iruela
Hello, I wonder if it is possible to "force" to use an specific language, while web2py perform the translation automatically based on user's browser language. This means that although, we use as a default language browser "English" we can choose our application in Spanish or Italian (ej: http://m