trac-hacks / tracstats

Project and source code statistics plugin for Trac.
http://trac-hacks.org/wiki/TracStatsPlugin
Other
20 stars 13 forks source link

i18n support #35

Open hasienda opened 12 years ago

hasienda commented 12 years ago

Compliments for a great first impression of this Trac plugin. I just gave it a shot at Trac 0.11 - just works, will do later on Trac 0.13dev.

I'll continue to explore it, but at first glance THE major show-stopper for my Trac application is missing German localization. Would you accept a contribution? I don't know, if I could make more than a patch stack, because I don't use Git and have not tested Git support in Mercurial yet. Apart from that I'd like to throw in my expertise on the subject as my time permits.

mrjbq7 commented 12 years ago

Thanks! I'd love to localize it to other languages.

Probably it just requires page titles ("stats", "code", "wiki", "tickets") and contents (in tracstats/templates/*.html).

Do you have experience doing this for Trac plugins, or would you just like to provide some German text and I'll figure out how to plug it in?

mrjbq7 commented 12 years ago

Btw, I doubt localization requires extensive testing of the other backends (git or mercurial) since they share common output templates.

mrjbq7 commented 12 years ago

Perhaps this page is useful:

http://trac.edgewall.org/wiki/TracL10N

hasienda commented 12 years ago

InternationalizatioN is a bit more than translation, but that's the start. Templates and user-facing message texts, if available. But I'll care for localized, even user-configurable time stamps (Trac 0.13dev) too. Of course this should be optional and backwards-compatible down to trac-0.11, as this plugin does work by now.

Don't worry, I've done it before, and I'm the guy behind http://trac-hacks.org/wiki/TracPluginTranslation.