[Zope-dev] Re: [Checkins] SVN:
zope.i18n/branches/regebro-pluralsupport/src/zope/i18n/
Changed the API. It's unwieldy as it is,
so better have separate methods
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Jul 16 14:55:55 EDT 2008
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"
More information about the Zope-Dev
mailing list