In php, how to convert the English country name to a localized version?
For example, if the locale is set to fr
, so that JAPAN
would become JAPON
.
Update: managed to make it work from the country code but still need country to country code without resorting to a handcrafted array.
echo locale_get_display_region('-JP', 'fr'); // Japon