Re: number formatting (with commas)

2009-05-03 Thread Zoran Avtarovski
Wouldn¹t the appropriate currency symbol be in the locale properties? I expect you would have a separate package.properties file for each locale. Z. > > akoo wrote: >> > I am not sure actually, it was just an example I pulled the roseindia site. >> > This is all quite new to me. > > (Be wary of

Re: number formatting (with commas)

2009-05-01 Thread Dave Newton
akoo wrote: I am not sure actually, it was just an example I pulled the roseindia site. This is all quite new to me. (Be wary of roseindia tutorials.) Chris is right; it's just a positional parameter--not sure what I was thinking when I wrote my original response. Dave ---

Re: number formatting (with commas)

2009-05-01 Thread akoo
I am not sure actually, it was just an example I pulled the roseindia site. This is all quite new to me. newton.dave wrote: > > akoo wrote: >> format.number = USD{0,number,##0.00} > > Is it possible to specify characters outside of the format string like > that? It's not how you've formatted

Re: number formatting (with commas)

2009-05-01 Thread Chris Pratt
Since the purpose of the tag is to allow things like: error.message=User {0} has not been granted permission to view that page I don't see how having USD outside of the curly braces would be a problem, but just in case it is, you might try: format.money={0,number,'USD'###,##0.00} Also try so

Re: number formatting (with commas)

2009-05-01 Thread Dave Newton
akoo wrote: format.number = USD{0,number,##0.00} Is it possible to specify characters outside of the format string like that? It's not how you've formatted the money type: format.money = {0,number,\u00A4##0.00} Dave - T

Re: number formatting (with commas)

2009-05-01 Thread Burton Rhodes
Guess it would help if I read your entire email ;) How about this: format.number= {0,number,\u00A4###,##0} -or- format.number= {0,number,'USD'###,##0} On Fri, May 1, 2009 at 1:26 PM, Burton Rhodes wrote: > I solved it this way: > > > > Then in your class path put a file called package.proper

Re: number formatting (with commas)

2009-05-01 Thread Bhaarat Sharma
wont "format.money = {0,number,\u00A4###,##0}" automatically add a '$' sign in front of the number? On Fri, May 1, 2009 at 2:26 PM, Burton Rhodes wrote: > I solved it this way: > > > > Then in your class path put a file called package.properties with the > following: > > # used to format dates,

Re: number formatting (with commas)

2009-05-01 Thread Burton Rhodes
I solved it this way: Then in your class path put a file called package.properties with the following: # used to format dates, numbers in the jsp files (display) format.time = {0,time} format.dateShort = {0,date,MM/dd/} format.number = {0,number,###,##0.0##} format.percent = {0,number,##0.0