You can also just do it in a model file -- you can change
request.controller and request.function before the controller is called.
Anthony
On Wednesday, January 14, 2015 at 12:29:31 PM UTC-5, Derek wrote:
>
> So it looks like you'd need to implement this closer to the webserver than
> web2py. i
So it looks like you'd need to implement this closer to the webserver than
web2py. it is available in a header, Accept-Language. You could build a
middleware and run web2py as a WSGI app.
On Wednesday, January 14, 2015 at 3:58:01 AM UTC-7, alex wrote:
>
> Is it possible to use current.T in route
no because the language is not determined until the end of the routing.
On Wednesday, 14 January 2015 04:58:01 UTC-6, alex wrote:
>
> Is it possible to use current.T in routes.py, to recognize an incoming
> request based on current.T.current_language and reroute it to the correct
> controller /
3 matches
Mail list logo