On Mon, Feb 1, 2010 at 10:14, Richard Liao <[email protected]> wrote: > 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. Y! this is very important! we r China Kingsoft.com, creat some plugin: http://trac-hacks.org/wiki/KTRAC but can not easy share out, had to publish Chinese/English two version...
so if genshi i18N is working, we will happy sharing more and more plugin base Trac > Thanks in advance, > > Richard Liao > -- http://zoomquiet.org 人生苦短? Pythonic! usage 7-zip to replace WinRAR/WinZip; You can get the truely Freedom 4 software. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
