开发者

Trac default language

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜