Honestly, I have never seen a need for this. Any time I visit a foreign 
language site, the URL mapping is in english. Chinese, Japanese, Russian, 
all seem to keep the URL pretty much the same regardless of the language. I 
can usually hunt my way around a foreign language website by the links.For 
example, on a Russian site, i'll hover over 'novosti' to find the url 
'/news/' etc etc.


On Tuesday, January 27, 2015 at 5:12:42 AM UTC-7, Francisco Costa wrote:
>
> I'm using the Parameter-based rewrite system 
> <http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system>
>  
> and I would like to find a strategy to **translate controller names and 
> function names**.
>
> I have 2 domains and I use only one app for both, but I would like to have 
> the controllers and functions translated for the non-english one.
>
> Something like this:
>
>  - http://domain.com/article/new (english - default language)
>  - http://domain.pt/artigo/novo    (portuguese - translation)
>
> What would be the best way to achieve this?
>
> PS: I also would like to have some redirection if someone typed the wrong 
> domain extension:
> http://domain.pt/article/new -> http://domain.pt/artigo/novo
>
>
>

-- 
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