struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject Re: s2 currency and internationalization
Date Thu, 23 Jul 2009 14:39:56 GMT
Thanks!! this helps!

On Wed, Jul 22, 2009 at 10:08 PM, kaphilmore <kennethluke@sbcglobal.net>wrote:

> FIXED. If you're trying to sell a product in US dollars and you're selling
> internationally, use something similar to this in your resource file. I hope
> this helps someone, because it drove me crazy for a day!!
>
> <s:text name="format.money">                                    <s:param
> value="product.cost" />
> </s:text>
>
> format.money = $&nbsp;{0,number,#.00}
>
>
> --- In struts@yahoogroups.com, "kaphilmore" <kennethluke@...> wrote:
> >
> > I'm using S2 for an eCommerce application (with resource files in
> different languages) and I'd like to display the currency in US only. The
> problem, when someone using the 'fr' locale comes to the site, the price is
> displayed as 89,99 instead of 89.99. Is there a way to force it to display
> as '89.99'? My setup is below.
> >
> > item.price={0,number,currency}
> >
> > <s:text name="item.price">                                    <s:param
> value="product.cost" />
> > </s:text>
> >
> > Thanks in advance for any help.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@...
> > For additional commands, e-mail: user-help@...
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message