1 Feb 03:14
[Trac-dev] Question about Trac plugin i18n
Richard Liao <richard.liao.i <at> gmail.com>
2010-02-01 02:14:13 GMT
2010-02-01 02:14:13 GMT
Hi all, Since Trac 0.12dev's i18n support for plugins have been implemented for more than one year, I think it should be stable now. I'm trying to migrate some plugins to apply i18n, according to http://trac.edgewall.org/ticket/7497#comment:12 What I have done: 1. Apply i18n changes to setup.cfg, setup.py, all .py files and templates. 2. Extract messages from .py files and template using "python setup.py extract_messages" 3. Translate local language files 4. Make .mo file using "python setup.py compile_catalog -f" Everything works perfectly except for Genshi templates. I have added xmlns:i18n="http://genshi.edgewall.org/i18n" in html tag, and template messages can be extracted to .po files. Lack of plugin domain in template seems the problem, but I can't find where to add it. Any suggestions are appreciate. Thanks in advance, Richard Liao -- -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev <at> googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscribe <at> googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.(Continue reading)
RSS Feed