There's also the alternative of embedding a language code in the URL and 
not translating the URL elements. The parameter-based routing system 
already supports that, and it would give you separate search-engine 
indexing.

On Tuesday, January 27, 2015 at 4:12:42 AM UTC-8, 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