[Trac] Re: Trac, mod_python, locale and dates

Christopher Lenz cmlenz at gmx.de
Mon Mar 14 11:06:08 EST 2005


Jani Averbach wrote:
> How should I set up Trac with mod_python and with a foreing locale so
> that e.g. dates are showed the Right Way.  With cgi SetEnv will do the
> trick, but that didn't work with mod_python?

Right. That's why I added a "TracLocale" option to the Trac mod_python
handler in trunk: <http://projects.edgewall.com/trac/changeset/1346>.

Use that option (it's a PythonOption just like "TracEnv" or
"TracUriRoot") with the locale string you'd use to set LC_ALL etc (for
example "de_DE"), and the dates will be displayed in that format.

Cheers,
Chris
-- 
Christopher Lenz
  cmlenz at gmx.de
  http://www.cmlenz.net/



More information about the Trac mailing list