开发者

Trac default language

开发者 https://www.devze.com 2022-12-23 07:30 出处:网络
How can I set default language for trac. Ther开发者_开发百科e\'s nothing about i18n in trac.iniTrac will use the locale provided by your http server by default.Easiest thing to do is just change the l

How can I set default language for trac. Ther开发者_开发百科e's nothing about i18n in trac.ini


Trac will use the locale provided by your http server by default. Easiest thing to do is just change the locale Apache is running under.

Or if you are running trac under mod_python you can modify the TracLocale option:

SetHandler mod_python PythonOption TracLocale "de_DE.UTF-8" ...

For more info: http://trac.edgewall.org/wiki/TracFaq#how-do-i-change-the-format-used-for-displaying-date-and-time


The stable release of trac, 0.11.X does not have support for localization. It is added in the upcoming 0.12 which is currently under development. Do you have 0.12 or did you download "latest stable" which is 0.11? In that case you will have to upgrade to get localization support.

The trac site itself appears to be running 0.12 as it is localized.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号