Is en_UK an illegal locale?

前端 未结 5 1843
孤街浪徒
孤街浪徒 2021-02-02 05:17

So far I had always used \'en_UK\' for British English. Today I got an error when using it with Zend Framework because the locale is not included in the long list of recognized

5条回答
  •  情话喂你
    2021-02-02 05:48

    the correct country code in ISO 3166 for the United Kingdom of Great Britain and Northern Ireland is for some reason "GB", so the locale code should be en_GB, and not en_UK as noted here.

    en_GB is also used by glibc, gnome, kde, etc

    Also i like the fact that many previous bug fixes in opensource projects are related to this like in apache http 1.3 and roundcube project

提交回复
热议问题