s2 currency and internationalization

2009-07-22 Thread kaphilmore
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}

  


Thanks in advance for any help.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: s2 currency and internationalization

2009-07-22 Thread kaphilmore
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!!




format.money = $ {0,number,#.00}


--- In str...@yahoogroups.com, "kaphilmore"  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}
>
>  value="product.cost" />
> 
>
> Thanks in advance for any help.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@...
> For additional commands, e-mail: user-h...@...
>



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: s2 and default locale/language

2009-07-24 Thread kaphilmore
Is it possible you have the locale configured in your struts.xml like this --



If so, you're properties files will not change based on locale.


--- In str...@yahoogroups.com, Marsman  wrote:
>
>
>
> Hi!
>
> meanwhile I've found something interresting: My application is running on
> Apache Tomcat. When I set the
> "-Duser.language=en -Duser.region=US" for Tomcat, Struts doesn't use de as
> default language anymore.
>
>
> Titus
>
>
>
> Pascal-53 wrote:
> >
> > Hm, ok. Could you post your resource bundle initialization/usage?
> >
> > Pascal
> >
> > On Thu, 23 Jul 2009 04:18:50 -0700 (PDT), Marsman  wrote:
> >> I've tried the browser language detection page and as I expected only the
> >> language code "da-DK" was listed. I had already removed the languages
> > de-DE
> >> and en-US an the browser and addad da-Dk to test my Struts configuration.
> >>
> >> Titus
> >>
> >>
> >>
> >> Pascal-53 wrote:
> >>>
> >>> Are you sure your browser settings are correct? I bet it's on the client
> >>> side, not a struts/config error.
> >>>
> >>> Try using some page to detect your language setting, like
> >>> http://aruljohn.com/lang.php
> >>>
> >>> Hope this helps,
> >>>
> >>> Pascal
> >>>
> >>> On Thu, 23 Jul 2009 03:24:50 -0700 (PDT), Marsman 
> >>> wrote:
>  Hi!
> >>>
> >>>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@...
> > For additional commands, e-mail: user-h...@...
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/s2-and-default-locale-language-tp24623075p24642168.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@...
> For additional commands, e-mail: user-h...@...
>



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org