Hi,

ia have in routes.py:


routers = dict(

    # base router
    BASE=dict(
        default_application='app',
    ),
    app=dict(languages=['en', 'it'], default_language='en')
)


So this works just fine. If I go to my app: http://localhost:8000/app I see 
English site and if I go to http://localhost:8000/app/it is see Italian.

But how can I force language in URLs? So that url will always show 
http://localhost:8000/app/en or http://localhost:8000/app/it and not 
http://localhost:8000/app ?

Is there a web2py way of doing it or this is possible just with writing 
custom logic?

Thanks in advance.

K.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to