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"
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to