ZF-10728: Getting ldml/numbers/defaultNumberingSystem using Zend_Locale_Data

Issue Type: Bug Created: 2010-11-22T21:39:46.000+0000 Last Updated: 2011-06-14T17:23:40.000+0000 Status: Resolved Fix version(s): - 1.11.8 (07/Jul/11)

  • Next Major Release ()

Reporter: John Boehr (jboehr) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Locale

Related issues: Attachments:


Maybe I'm missing something, but there doesn't seem to be a way to get ldml/numbers/defaultNumberingSystem using Zend_Locale_Data from the locale data files. I've checked over every line of Zend_Locale_Data::getContent() and Zend_Locale_Data::getList() and can't seem to find any way of doing it.

I could hack it in or write my own code to do it, but I hate having to do the former, and the latter seems like a waste of time considering Zend_Locale_Data has all of the fancy caching and processing built in.

I'm currently using 1.9.6, however it appears that Zend_Locale_Data is mainly unchanged between that version and 1.11.0

I can use the following code added to Zend_Locale_Data::getContent() around line 1149 (in 1.9.6)

{quote} case 'defaultnumberingsystem': $temp = self::_getFile($locale, '/ldml/numbers/defaultNumberingSystem', '', 'default'); break; {quote}


Posted by Adam Lundrigan (adamlundrigan) on 2011-06-14T02:11:47.000+0000

Implemented fix and unit test

Pushed code to trunk in r24139 Merged to release-1.11 in r24140

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.