#924: i18n toolbox docs
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: Toolbox | Version: 0.9a6
Severity: normal | Keywords: logging
---------------------------------+------------------------------------------
The introduction text accompanying i18n in the toolbox is wrong.
{{{
You don't need to do this for text inside tags in your kid template files.
Tagged text will be automatically collected:
< <strong>hello world</strong> ## This does not seem to work at all
> <strong>${_(hello world)}</strong> ## This does seem to work
If you want your templates to be automatically translated, add the i18n
template filter to your configuration file
< i18n.runTemplateFilter = True
> i18n.run_template_filter = True
You let your users change the locale of a running application by updating
their session:
< cherrypy.session['locale'] = lang
> turbogears.i18n.set_session_locale(lang)
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/924>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---