Issues

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

pl.xml look like this:

#,##0.00 ¤{0} {1}

and suppose to be fine. pls help!

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.