On Wed, Jul 16, 2008 at 22:36, Hanno Schlichting <[EMAIL PROTECTED]> wrote:
> <p i18n:translate="">
> You have to pay
> <span tal:content="view/formatted_amount" i18n:name="amount"
> i18n:count="view/amount">6 dollars</span>.
> In this case the underlying value is a simple integer, but the actual
> presentation might be locale dependent, like currency formatting.
Ah. Yes, that's a nice usecase I hadn't thought about.
> I'm not sure what to do with this actually. How does multiple numbers in the
> same sentence are handled? I think this is just not allowed and should cause
> a syntax error, as there's no general way to translate those sentences with
> Gettext. Or does it result in a n-dimensional matrix?
No, gettext only supports one number per message.
> How does this behave in regard to zope.i18nmessageid?
There will need to be some extension of the API, I think.
> So I think we need to signal to the messageid which variable in the mapping
> is significant for the i18n count, right?
It's easier to just pass in the i18n count separately, IMO.
Lennart Regebro: Zope and Plone consulting.
+33 661 58 14 64
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -