Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Thanks Marin but I'm using the parameters based system I've found this question https://groups.google.com/forum/#!searchin/web2py/translation$20routes/web2py/Y8rc6yJgmbk/Iy6rqwYe27oJ and I think I will go with the models trick On Tuesday, October 22, 2013 7:00:45 PM UTC+1, Marin Pranjić wrote

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Marin Pranjić
Check here: http://web2py.com/books/default/chapter/29/04/the-core?search=routes#Pattern-based-system you need something like: routes_in=(('/appname/translated_controller_1/translated_function_1/$anything', '/appname/original_controller_1/original_function_1/$anything'), (...)) repeat for every

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Thanks Marin, can you provide me with an example of a translated controller and function using routes? On Tuesday, October 22, 2013 6:38:32 PM UTC+1, Marin Pranjić wrote: > > You can't translate a controller name, but you can use routes to map > translated name into original one. > The same is

Re: [web2py] Controller name translation and function name translation

2013-10-22 Thread Marin Pranjić
You can't translate a controller name, but you can use routes to map translated name into original one. The same is for functions. Table names and fields can be translated easily using T('string_to_translate') Marin On Tue, Oct 22, 2013 at 7:25 PM, Francisco Costa wrote: > Is it possible to tra

[web2py] Controller name translation and function name translation

2013-10-22 Thread Francisco Costa
Is it possible to translate a controller name, without to copy the all code to a different controller name? And a function name? What about table names and fields? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https