Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 93506 invoked by uid 500); 21 May 2003 09:05:08 -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 93460 invoked from network); 21 May 2003 09:05:07 -0000 Received: from dobit2.rug.ac.be (157.193.42.8) by daedalus.apache.org with SMTP; 21 May 2003 09:05:07 -0000 Received: from allserv.rug.ac.be (allserv.rug.ac.be [157.193.40.42]) by dobit2.rug.ac.be (8.12.8/8.12.8) with ESMTP id h4L95CZZ011324; Wed, 21 May 2003 11:05:12 +0200 (MEST) Received: from otsrv1.iic.rug.ac.be (otsrv1.iic.rug.ac.be [157.193.121.51]) by allserv.rug.ac.be (8.12.8/8.12.8) with ESMTP id h4L95CGm021543; Wed, 21 May 2003 11:05:12 +0200 (MEST) Received: from [192.168.123.102] (host102 [192.168.123.102]) by otsrv1.iic.rug.ac.be (8.11.6/8.11.6) with ESMTP id h4L95Cx31637; Wed, 21 May 2003 11:05:12 +0200 Subject: Re: [PATCH] I18nTransformer decimal and grouping locale From: Bruno Dumon To: cocoon-dev@xml.apache.org Cc: michael.enke@wincor-nixdorf.com In-Reply-To: <000601c31f60$7e889e70$a7e913ac@kot> References: <20030520155514.22182.qmail@nagoya.betaversion.org> <001601c31efc$97119690$c8eb14ac@kot> <1053459441.29909.129.camel@yum.ot> <000601c31f60$7e889e70$a7e913ac@kot> Content-Type: text/plain Organization: Outerthought Message-Id: <1053507733.4685.157.camel@yum.ot> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 21 May 2003 11:02:13 +0200 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 2003-05-21 at 08:15, Konstantin Piroumian wrote: > > > > However, the knowledge of what the decimal-separtor and group-seperator > > are for a certain locale is already present in the JRE for a large > > number of locales. Why not reuse that as the dec-and-grp-locale > > attribute is doing? Otherwise you'd have to define germans-for-* formats > > for all countries in which you are selling. > > So maybe for such cases it'd be easier to use the target country locale > (i.e. en_US) and just allow to override the currency sign? E.g.: 1,000.99 DM Would probably also work, I'd like to here from Michael if he finds this ok. But aren't there any other properties like the number of digits after the decimal point that should then also change? In the end it seems like a rather arbitrary choice in which direction the properties are copied over. (if you really don't like any of this, or want more time to think about this, I can revert the patch for now and reopen the bugzilla entry) -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org