i18nMessage object from python is not translated

Bug #513790 reported by kevingill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chamelon Core
Invalid
Undecided
Unassigned

Bug Description

In the zope3 package, zope.app.component, the registration.pt template attempts to render i18nmessageid.message.Message objects.

In zope page templates the objects are translated.

In chameleon the render value is the equivalent of str() on the object.

The problem is in these views:

/++etc++site/@@registrations.html

and the the @@registration.html on a utility

Classes registration.py::SiteRegistrationView and registration.py::RegistrationView

I don't know whether the zope.app.component code is incorrect or whether the chameleon engine is acting incorrectly.

Revision history for this message
Malthe Borch (mborch) wrote : Re: [Bug 513790] [NEW] i18nMessage object from python is not translated

On 28 January 2010 15:08, kevingill <email address hidden> wrote:
> In chameleon the render value is the equivalent of str() on the object.

Have you explicitly put i18n:translate="" in this tag? Otherwise it
does not translate in Chameleon.

\malthe

Revision history for this message
kevingill (kevin-movieextras) wrote :

I added in the i18n:translate="" on the tag and it worked perfectly.

Thanks,

Kevin

Malthe Borch (mborch)
Changed in chameleon.core:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.