On 13 Jan 2014, at 7:48 AM, Gael Princivalle <[email protected]> wrote:
> That's a good solution, thanks.
>
> In the meantime I've found that you have to specify with C=...the controller
> and f=... the functiuon in the URL helper.
>
> That like that it works fine:
> {{response.menu.append(('IT', False, URL('it', f=request.function), [('EN',
> False, URL('en', f=request.function), [])]))}}
>
> Thanks again for your help.
The latest source code has a patch that supports a language= override for
URL(). Something like this:
{{response.menu.append(('IT', False, URL(language='it', f=request.function),
[('EN', False, URL(language='en', f=request.function), [])]))}}
--
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.