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 controler/function that you need to translate. You
have to do it manually.

On Tue, Oct 22, 2013 at 7:45 PM, Francisco Costa
<[email protected]> wrote:
> 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 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
>> <[email protected]> wrote:
>> > 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://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/groups/opt_out.
>
> --
> 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/groups/opt_out.

-- 
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/groups/opt_out.

Reply via email to