Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 48674 invoked by uid 500); 15 May 2001 04:53:18 -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 48662 invoked from network); 15 May 2001 04:53:18 -0000 Date: Tue, 15 May 2001 00:03:44 +0200 From: Giacomo Pati To: cocoon-dev@xml.apache.org Subject: Re: I18nTransformer (with param substitution) Message-ID: <20010515000344.A30495@simba.pwr.ch> References: <041c01c0dc55$b6406be0$9d0a000a@flagship.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <041c01c0dc55$b6406be0$9d0a000a@flagship.ru>; from KPiroumian@flagship.ru on Mon, May 14, 2001 at 01:10:25PM +0400 Organisation: Apache Software Foundation X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Mon, May 14, 2001 at 01:10:25PM +0400, Piroumian, Konstantin wrote: > > > > Konstantin > > > > Can anybody work on this patch? I haven't had the time to look into it. > > What do you mean by working on it? I am still working on it - it is required > for my current project, but it's open source and anybody is allowed to work > on it and improve. With "working on it" I meant integrating/applying to the code base etc. Giacomo > > > > > Giacomo > > > > > Hi! > > > > > > I've implemented the param substitution in I18nTransformer. Now it is > > > possible to use it like this: > > > > > > This page was hit {0} times.{/i18n:text> > > > count > > > > > > The source and samples are attached. I have also attached an XML Spy > project > > > file for convenience. > > > > > > I am open for comments and suggestions. Next task will be dictionary > > > improvement to support include and import capabilities. > > > > > > Btw, is there a good way of internationalizing dates and currencies (to > use > > > different formatting)? > > > Example: > > > > > > Current date {0, date, 'dd/MM/yyy'}.{/i18n:text> > > > new Date() > > > > > > > > > The problem is that MessageFormat class that I use for substitution gets > an > > > array of Objects as argument, but I cannot get objects from XML - only > > > strings. Any ideas? > > > > > > Best regards, > > > > > > Konstantin Piroumian > > > Software engineer > > > > > > Protek Flagship LLC > > > Phone: + 7 095 795 0520 (add. 1288) > > > Fax: + 7 095 795 0525 > > > E-mail: kpiroumian@flagship.ru > > > http://www.protek.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org