I think that Niphlod is probably right, though I might be inclined to stick with your programmatic logic rather than use pattern-based routing. And maybe write a wrapper for URL() so that all the logic is in the same place and driven off the same tables.
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 [email protected]. For more options, visit https://groups.google.com/d/optout.

