Lennart Regebro wrote:
> On 2/23/06, yuppie <[EMAIL PROTECTED]> 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 ;)


Zope-CMF maillist  -  Zope-CMF@lists.zope.org

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to