Issues

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:

Description

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

Comments

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');
var_dump($currency->toCurrency(200));

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');
//or
$currency = new Zend_Currency('fr_BE');
var_dump($currency->toCurrency(200));

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. (http://www.unicode.org/cldr) 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.

Copyright

© 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.

Contacts