cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huber" <bh22...@i-one.at>
Subject Re: i18n number formatting (was: [C2.0] Error in sitemap configuration : org.apache.cocoon.transformation.I18nTransformer)
Date Mon, 05 Nov 2001 17:13:35 GMT
Hi, Konstantin

You may have to add the attribute
src-locale="en" 
to help the number formatter parsing the number.
 Thus the change lines to:
<i18n:param type="number" src-locale="en" value="1703.74" />
<i18n:param type="number" src-locale="en" sub-
type="currency">27.24</i18n:param>
<i18n:param type="number" src-locale="en" sub-
type="percent">1.2</i18n:param>	

Then you will get the correct output.

I have somehow the feeling that some sort of spec would
be nice for such transformation-components....
bye Huber, Bernhard

----- Originalnachricht -----
Von: "Piroumian, Konstantin" <KPiroumian@flagship.ru>
Datum: Montag, November 5, 2001 10:53 am
Betreff: i18n number formatting (was:  [C2.0] Error in sitemap 
configuration : org.apache.cocoon.transformation.I18nTransformer)

> Sorry for the buzz. I recompiled everything from scratch and it 
> worked.
> But I've noticed a strange behavior in i18n samples: for some 
> reason number
> formatting works not as expected. It formats the same number in 
> differentways and the value differ. <i18n:param type="number" 
> value="1703.74" />
> results in:
> 
> English    1,703.74
> Russian    001 703
> German    170.374
> 
> This must be
> 1,703.74 for English
> 1 703,74 for Russian
> 1 703.74 for German (?)
> 
> I suspect, that this happened after applying the patch from Enke 
> Michael(from Sep 7) that added int-currency and fixed(?) 
> i18n:number behavior.
> 
> 
> ----- Original Message -----
> From: "Neeme Praks" <neeme.praks@one.ee>
> To: <cocoon-dev@xml.apache.org>
> Sent: Sunday, November 04, 2001 10:45 PM
> Subject: RE: [C2.0] Error in sitemap configuration :
> org.apache.cocoon.transformation.I18nTransformer
> 
> 
> >
> > AFAIK, Cocoon has not yet migrated to the new i18n support in 
> Avalon (it's
> a
> > bit early for that also, the code is a bit in a state of flux at 
> current> moment.)
> > But Berin seems to have made some changes it I18nTransformer, 
> maybe that
> is
> > the cause...
> > Did it give any error messages?
> >
> > > -----Original Message-----
> > > From: Piroumian, Konstantin [mailto:KPiroumian@flagship.ru]
> > > Sent: Sunday, November 04, 2001 5:58 PM
> > > To: cocoon-dev@xml.apache.org
> > > Subject: [C2.0] Error in sitemap configuration :
> > > org.apache.cocoon.transformation.I18nTransformer
> > >
> > >
> > > Hi!
> > >
> > > I've just updated my CVS repository with cocoon_20_branch. It
> > > compiles, but
> > > after deploying to Tomcat 4.0 it complains that could not find the
> > > i18nTransformer class. The source file is copied to the build
> > > directory, but
> > > there is no  I18nTransformer.class in the resulting 
> cocoon.war. Maybe
> > > something's went wrong after recent changes to Avalon/Cocoon i18n
> support?
> > >
> > > Regards,
> > >     Konstantin Piroumian
> > >
> > > ---------------------------------------------------------------
> ------
> > > 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
> >
> 
> -------------------------------------------------------------------
> --
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

Mime
View raw message