Just added doc for the functions related to forcing languages on
development branch of the documentation:
http://turbogears.readthedocs.org/en/development/turbogears/i18n.html#forcing-a-language


On Fri, Nov 29, 2013 at 1:24 AM, Alessandro Molina <
[email protected]> wrote:

> tg.i18n.set_lang does exactly that for you, thanks for pointing out that
> it is missing from the documentation
> On Nov 28, 2013 8:47 AM, <[email protected]> wrote:
>
>> Hi all,
>>
>> I'm working on an application which would be available in different
>> languages. I read the documentation about localization /
>> internationalization at
>> http://turbogears.readthedocs.org/en/latest/turbogears/i18n.html
>>
>> What I wan't to do is to allow the user to choose which language to be
>> used. By default the browser information will be ok (and TG seems to manage
>> this), but I'd like also to force the language with a select field showing
>> flags.
>>
>> What is the best way to do so in TG? My first idea is to store the
>> choosen language in the user session, and to inherit from the tg controller
>> and to force language if the flag is present in the user session... Is that
>> the way you would do it ?
>>
>> thanksfor your feedback.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/turbogears.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to