Login  Register

Re: Getting rid of leading US from ofbizCurrency macro

Posted by Leon Torres-2 on Aug 09, 2006; 11:15pm
URL: http://ofbiz.116.s1.nabble.com/Getting-rid-of-leading-US-from-ofbizCurrency-macro-tp141284p141287.html

Well I had to dig in and look at UtilFormatOut.formatCurrency.

It's using the ICU4j formatter to generate the currency.  The strange thing is
when I write a test class to compare the difference between that NumberFormatter
and the default Java one, I don't see a difference.  They both print "$10.00".
   But somehow in my ofbiz the number comes out "US$10.00".

Anyone know why this is?   I found a currency format string in
general.properties "##0.00" but playing with this doesn't fix the problem.

What is causing ICU4j to print "US$10.00" instead of "$10.00" like it's supposed to?

- Leon