On 9/26/2012 9:32 PM, Dirk Stöcker wrote:
> On Tue, 25 Sep 2012, Christian Boos wrote:
> 
>> So, for the way forward, I'll try to find some time this evening to fix
>> the docs and I could also commit the changes I've done on the
>> plugins/1.0/spam-filter if you're OK with that.
> 
> For the _() inside python code in the html templates (e.g. spamentry)
> the translation does not work. For SpamEntry "yes" and "no" are
> translated, but not the rest, so I asume the domain setting is still
> wrong for this part of code.

Well spotted! Yes, the "_" present in the templates refers to the
standard "_", not the domain-equipped one from the plugin. One need to
override it in the plugin's render_admin_panel() methods (`data['_'] = _`).

See http://trac.edgewall.org/changeset/11377 for that and some more...

> 
> Biggest problem are the spam results. Instead of compiled texts I need
> to keep text and values separate and only translate when finally
> displayed. Needs some rework in code structure :-)

I'll happily let you do that ;-)

-- Christian

-- 
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.

Reply via email to