-
Notifications
You must be signed in to change notification settings - Fork 805
Zend_Locale does not honor parentLocale configuration #516
Comments
For completion, here's the ticket I opened about this issue in CLDR http://unicode.org/cldr/trac/ticket/8194 |
"parentLocales" is not supported in the current implementation of (Note to me: Another reason to mark |
Workaround: $fmt = new NumberFormatter('es_AR', NumberFormatter::CURRENCY);
echo $fmt->formatCurrency(10, 'ARS'); Output:
|
Unfortunately, this workaround is not good for me as I am working in the The best fix in this scenario was to simply modify the XML files. Proper support would be preferrable I suppose, but this simple fix worked
|
Good to know.
Bad idea, because all XML files come from an external library (CLDR) and we can not change this library. |
Yes, I am aware. That is the reason why propper support would be However, simply changing the symbol position in the XML files was the fix
|
Thank you for your fix. I tried it in a Magento application and it works perfectly |
* 1.12.13: (668 commits) [1.12.13] Release readiness Fixes for unit tests Cast int and float to string when creating headers Bump to next dev version [1.12.12] Release readiness Updated README with ZF2015-04 details [ZF2015-04] Fix CRLF injections in HTTP and Mail Added test for zendframeworkGH-564 Adds unit test for parent locale in Zend_Currency Fixes zendframework#516 - Zend_Locale does not honor parentLocale configuration Adds test for locale without parent local in Zend_Locale_DataTest Extends Zend_Locale_Data::getContent for reading parent locales Allow early suppressing of file not found warnings Fixes zendframework#561 - Zend_Date not expected year (sk) tfix Fixes zendframework#557 - Dependencies table unreadable Fixes wrong exceptions in Audioscrobbler unit test Fixes zendframework#550 - Zend_Http_UserAgent_AbstractDevice undefined index Fixed typo in Zend_View_Helper_Navigation_HelperAbstract Updated class name in PHPDoc ... Conflicts: .gitignore README.md composer.json
This has become obvious after the update to CLDR 25 in which currency symbol position changed for es.xml but not for es_419.xml
All Latin American locales should inherit from es_419.xml as specified in supplementalData.xml line 409
Try the following script:
Expected result
$10
Actual result
10 $
The text was updated successfully, but these errors were encountered: