Hi Niphlod,
Thanks for your example. It's crystal clear. ;)
I got another doubt about multi-languages: on the online book I read that
in order to tell web2py which language is the default one, I have to use:
T.set_current_languages('it')
>
Now I am wondering if I need to use it in the controller and call it every
time I load a page, or I can put it somewhere else and tell web2py just
once which one is the default language.
Sorry for all these doubts! :P
Cheers,
David
On 15 November 2012 21:46, Niphlod <[email protected]> wrote:
> I'd do the following
> 1. choose a storage option for your content (you may want to use a simple
> table with a 'text' field for editing online, or code something to save the
> content to a "txt" file)
> 2. code something that inspects the uri_language and does
> (semi-programming-language):
> if exists "nameoftherequestedarticle":
> if uri_language in "translationsofthearticle":
> content = translatedarticle
> else:
> content = originalarticle (english ?)
> else:
> raise 404
>
> --
>
>
>
>
--