Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 94827 invoked by uid 500); 23 May 2003 05:37:49 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 94814 invoked from network); 23 May 2003 05:37:49 -0000 Received: from office.oilspace.com (213.219.58.70) by daedalus.apache.org with SMTP; 23 May 2003 05:37:49 -0000 Received: from kpiroumian (ns.informtek.com.ru [195.239.59.130]) by office.oilspace.com (Postfix) with SMTP id 4A949144; Fri, 23 May 2003 06:37:48 +0100 (BST) Message-ID: <0afc01c320ed$7c3bfcf0$a52efea9@kpiroumian> From: "Konstantin Piroumian" To: "Enke, Michael" Cc: References: <20030520155514.22182.qmail@nagoya.betaversion.org> <001601c31efc$97119690$c8eb14ac@kot> <1053459441.29909.129.camel@yum.ot> <000601c31f60$7e889e70$a7e913ac@kot> <1053507733.4685.157.camel@yum.ot> <3ECC8E89.26A12ADD@wincor-nixdorf.com> <094601c32040$51000f20$a52efea9@kpiroumian> <3ECD1D32.92367711@wincor-nixdorf.com> Subject: Re: [PATCH] I18nTransformer decimal and grouping locale Date: Fri, 23 May 2003 09:38:03 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Enke, Michael" > Konstantin Piroumian wrote: > > From: "Enke, Michael" > > > > ... > > 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.: > > > > > > 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 > >