[ZCM] [ZC] 696/ 2 Resolve "i18n:name and tal:replace does not work in the same tag"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Thu, 30 Jan 2003 15:07:24 -0500


Issue #696 Update (Resolve) "i18n:name and tal:replace does not work in the same tag"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/696

==============================================================
= Resolve - Entry #2 by efge on Jan 30, 2003 3:07 pm

 Status: Pending => Resolved

Fixed in HEAD and Zope-2_6-branch, should appear in 2.6.1b2.

Note that this only occured if the tal:replace was something
that is not a string, for instance an integer.

________________________________________
= Request - Entry #1 by Anonymous User on Nov 25, 2002 10:57 pm

Using i18n:name and tal:replace in the same tag produces the error:

expected a character buffer object

A workaround is to use tal:content ( w/ tal:omit-tag="" ) instead of tal:replace.

I'm not familiar enough with zpt and i18n, but this 
maybe only happens if there is no translation in
the MessageCatalog... for more details see:
http://plone.org/collector/607

==============================================================