ZF2-167: unable to get territories list

Issue Type: Bug Created: 2012-02-19T14:15:18.000+0000 Last Updated: 2012-07-09T15:31:12.000+0000 Status: Resolved Fix version(s): Reporter: Fabrizio Balliano (balliano) Assignee: Maks 3w (maks3w) Tags: - Zend\I18n

Related issues: - ZF2-161



"territory" is not supported anymore by Zend\Locale\Locale::getTranslationList(), it was working perfectly with ZF1, sample code:

Zend\Locale\Locale::getTranslationList("Territory", get_lang(), 2);

throws an error, simply copying the ZF1 code did not work (I'd have posted the patch otherwise). Bye


Posted by Fabrizio Balliano (balliano) on 2012-02-19T19:24:35.000+0000

sorry the previous code contained a call to a custom function, you could just try:

\Zend\Locale\Locale::getTranslationList("Territory", "en", 2);

ZF1 => working (except for the different syntax) ZF2 => not working (territory not coded in Zend\Locale\Data\Cldr::getList() and getContent())

Posted by Maks 3w (maks3w) on 2012-05-08T16:08:30.000+0000

Finally this will not be fixed because there is a plan to remove this component.

With beta5 a new component will be released to cover this features.

As workaround you can use the functions provided by AbstractLocale (getDisplayLanguage, getDisplayScript, getDisplayRegion)

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.