|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-10-29 21:31 UTC] marcosdsanchez at gmail dot com
Description:
------------
Locale::getDisplayRegion does not return localized country names for some
countries.
Example:
echo Locale::getDisplayRegion('en_KY', 'hy_AM');
Returns:
KY
It should return instead the localized name of "Cayman Islands".
Test script:
---------------
https://gist.github.com/9b64706870f9c3b29d75
Expected result:
----------------
I expect the method to return an appropriately localized display name for the
regions of the hy_AM locale. It returns the country code instead.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 18:00:02 2025 UTC |
Thanks for the report, better late than never too look into it. With todays PHP-7.0 and ICU 57.1 i don't reproduce this behavior. Fe php.exe -r "echo Locale::getDisplayRegion('de-ch');" Switzerland php.exe -r "echo Locale::getDisplayRegion('de-de');" Germany Unfortunately no ICU version is given in the ticket, but most likely it is something not PHP related. Every version of ICU improves the data set, so that was most likely the issue. Thanks.