Hi Bernhard, hi Konstantin,
it may help to use the src-locale.
But I couldn't verify because the
<i18n:translate><i18n:text>...{0} .....
didn't work for me.
But with my patch I didn't touch the i18n:param edge.
I only looked at i18n:number
May be there is an open point that has to be corrected.
But I'm 2 weeks off the list from now.
Could you check this again and give me response?

Regards,
Michael

Bernhard Huber wrote:
> 
> 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" <[EMAIL PROTECTED]>
> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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:[EMAIL PROTECTED]]
> > > > Sent: Sunday, November 04, 2001 5:58 PM
> > > > To: [EMAIL PROTECTED]
> > > > 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: [EMAIL PROTECTED]
> > > > For additional commands, email: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -----------------------------------------------------------------
> > ----
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> > >
> >
> > -------------------------------------------------------------------
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> 
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to