16 Jul
2008
16 Jul
'08
6:55 p.m.
On Wednesday 16 July 2008, Lennart Regebro wrote:
While talking about this, what would a ZPT implementation of this best look like? An i18n:count statement that takes expressions?
<p i18n:translate="" i18n:count="view/file_count">There are %d files</p>
Or?
Good question! The ZPT above is not correct; once we write a correct one, it becomes more obvious: <p i18n:translate="">There are <span tal:content="view/num" i18n:name="num" i18n:count="view/num>10</span> files.</p> Alternatively we could just evaluate the tal:content or tal:replace expression. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. "Zope Stephan Richter"