[Zope-CMF] Re: [dev] Portal status messages and i18n: a proposal

Hanno Schlichting plone at hannosch.info
Thu Feb 23 08:39:59 EST 2006


Lennart Regebro wrote:
> On 2/23/06, yuppie <y.2006_ at wcm-solutions.de> wrote:
>> Currently the portal status message is always translated in the i18n
>> domain of main_template if sent through a redirect. This makes it
>> impossible to use different domains (and mappings or defaults).
>>
>> Add-on products might want to use their own i18n domain. CMFCalendar
>> demonstrates that use case. "Event changed." is currently not translated
>> because of that issue.
> 
> Afaik, using MessageIds solves this. If it doens't, that's a bug. :)

Message(ID)s indeed solve this but are complex unicode objects, that are
quite hard to map to a query string safe (per standard pure ascii but
utf-8 might work in recent browser versions) representation.

So how would the query string look like for this portal status message:

title = u'some object name with non-ascii chars in it'
_(u'msgid', default=u'Object ${name} deleted.', mapping={u'name': title})

?portal_status_message=... ?

And how would the page template regenerate a Message(ID) out of it
again, so it is indeed translated?

See my other post for a possible solution ;)

Hanno



More information about the Zope-CMF mailing list