ZF-10379: Wrong formatting with Zend_Currency for locale pl_PL
Description
$curr = new Zend_Currency('pl_PL'); echo $curr->toCurrency('1234567.6789', array('display' => Zend_Currency::USE_SYMBOL)); // you get: "1 234 567,68 zł" echo $curr->toCurrency('1234567.6789', array('display' => Zend_Currency::NO_SYMBOL)); // you get: "1234567,68", should be "1 234 567,68"
Using Zend_Currency::NO_SYMBOL the formatting ignores grouping. The output should be: "1 234 567,68". I suppose it is dependent on Zend_Locale, but don't know on which part exactly. The above works fine for example for locale "de_AT".
Comments
Posted by Marcin Dec (md23128) on 2010-08-26T01:40:00.000+0000
pl.xml look like this:
#,##0.00 ¤{0} {1}
and suppose to be fine. pls help!
Posted by Stefan Staudenmeyer (hadean) on 2010-12-29T00:49:21.000+0000
Its nopt the Formats section, its the Symbols-Section!
Er... If the whitespaces are the problem:
Index: trunk/library/Zend/Locale/Data/pl.xml
--- trunk/library/Zend/Locale/Data/pl.xml (revision 278) +++ trunk/library/Zend/Locale/Data/pl.xml (working copy) @@ -2136,7 +2136,7 @@ , - Â + .;%0
Greetings, Dörte, Mayflower.