ZF-10379: Wrong formatting with Zend_Currency for locale pl_PL

Issue Type: Bug Created: 2010-08-25T07:04:22.000+0000 Last Updated: 2012-11-20T21:38:15.000+0000 Status: Open Fix version(s): Reporter: Marcin Dec (md23128) Assignee: None Tags: - Zend_Currency

Related issues: Attachments:


$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".


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.