cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: [PATCH] I18nTransformer decimal and grouping locale
Date Fri, 23 May 2003 05:38:03 GMT
From: "Enke, Michael" <michael.enke@wincor-nixdorf.com>
> Konstantin Piroumian wrote:
> > From: "Enke, Michael" <michael.enke@wincor-nixdorf.com>
> >
> >
...
> > Yes, I understand quite well this issue. Ok. Let's try to do it other
way:
> > you specify the currency of the value, get a currency format instance
and
> > override NumberFormatSymbols using the target locale. E.g.:
> > <i18n:number type="currency" locale="en_US" currency-locale="de_EURO" />
> >
> > What do you think?
>
> I'm not sure if I understand you correct.
> Do you mean: get currency format instance for (in this example) de_DE
> and override FormatSymbols with FormatSymbols from NumberFormat en_US?
> I do override with DecimalFormatSymbols. Isn't this what I did?
> Ok, we can change the names:
> What I called "dec-and-grp-locale" can be "locale"
> and what I had "locale" can be "currency-locale". This is more straight
forward.
> Than it is what you mean? Ok.

Exactly. Sorry for not looking at the code.
So, let's change the attribute name and that's all.

-- Konstantin

>
> If I did not got you, do you mean the other way?
> Get currency format instance for en_US and override with somethink from
de_DE?
> Keep in mind that not all currencies have 2 digits behind the decimal
separator.
> There are countries without digits behind decimal.
>
> Regards,
> Michael
>
> > Regards,
> >   Konstantin
> >


Mime
View raw message