Is en_UK an illegal locale?

前端 未结 5 1834
孤街浪徒
孤街浪徒 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条回答
  •  -上瘾入骨i
    2021-02-02 05:49

    You cannot simply invent locales! They are already defined. So "en-gb" is British English, whereas "en-us" is American English. If you use "en-uk", you are just making up a code.

    As to why the official code is "en-gb" and not "en-uk", I think basically because there is no such thing as United Kingdom English. The language variant is British. Note that the difference between Great Britain and the United Kingdom is:

    UK = GB + Northern Ireland

    So by naming the variant "en-UK" it's as if you are saying that you want to include the way they speak in Northern Ireland within this category. But why would you want to do that? From a linguistic perspective it makes no sense, as Northern Ireland English is closer to Irish English (en-IE) than British English.

提交回复
热议问题