Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #924 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

i18n toolbox docs

Reported by: rune.hansen@… Owned by: fredlin
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)

Change History

comment:1 Changed 13 years ago by fredlin

  • Owner changed from anonymous to fredlin

comment:2 Changed 13 years ago by fredlin

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.