ZF-8378: euro-sign must reside before the amount instead of after the amount

Issue Type: Bug Created: 2009-11-24T00:20:05.000+0000 Last Updated: 2009-11-24T08:34:33.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Bert Van Hauwaert (becoded) Assignee: Thomas Weidner (thomas) Tags: - Zend_Currency

  • Zend_Locale

Related issues: Attachments:


25,00 € is incorrect, the correct way to display euro sign is before the amount, as in: € 25,00. See also the Wikipedia page: This is for the locales nl_BE, fr_BE and others. There are however a few exceptions.


Posted by Thomas Weidner (thomas) on 2009-11-24T07:57:21.000+0000

Please give an reproducable example. Running this code:

<pre class="highlight">
$currency = new Zend_Currency('nl_NL');

I got the following output:

<pre class="highlight">
string '€ 200,00' (length=11)

This is expected and correct behaviour.

Posted by Bert Van Hauwaert (becoded) on 2009-11-24T08:12:46.000+0000

It is locale nl_BE not nl_NL

<pre class="highlight">
$currency = new Zend_Currency('nl_BE');
$currency = new Zend_Currency('fr_BE');

I got the following output:

<pre class="highlight">
string '200,00 €' (length=11)

Posted by Thomas Weidner (thomas) on 2009-11-24T08:31:16.000+0000

Then please add an issue to Unicode. ( Zend Framework uses the same localization database as many many other languages (Java, Python, C++,...)

And Unicode defines the currency syntax for nl_BE as "#,##0.00 ¤"

This results to an output like "1,000.00 €" and is correct according to the latest CLDR.

Still, when you think that Unicode is wrong for your case, you could simply change this with some options yourself.

Posted by Thomas Weidner (thomas) on 2009-11-24T08:34:33.000+0000

Closing as non-issue Formatting is correct according to Unicode

Have you found an issue?

See the Overview section for more details.


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

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