cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject [PATCH] I18nTransformer decimal and grouping locale
Date Tue, 20 May 2003 18:20:49 GMT
Don't want to reopen this path, so replying to this message.

IMO, adding attributes for this kind of special cases is not a very good
idea.
It would be much better to define something like a <number-format/> or
<currency-format /> element where you could define anything you need, e.g.:

<currency-format name="germans-for-americans>
  <pattern>0.00##</pattern>
  <decimal-separator>.</decimal-separator>
  <group-separator>,</group-separator>
</currency-format>

or something like this. And then use it with <i18n:currency/>:

<i18n:number type="currency" src-locale="en" format="germans-for-americans"
value="27.24"/>

We can use syntax which is similar to number formatting in XSLT.

Regards,
  Konstantin

From: <bugzilla@apache.org>

> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19894
>
> [PATCH] I18nTransformer decimal and grouping locale
>
> bruno@outerthought.org changed:
>
>            What    |Removed                     |Added
> --------------------------------------------------------------------------
--
>              Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
>



Mime
View raw message