在哪里可以找到语言和地区代码列表? [英] Where can I find a list of language + region codes?

查看:153
本文介绍了在哪里可以找到语言和地区代码列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用谷歌搜索(实际上是DuckDuckGo'ed),直到脸色发青,但在任何地方都找不到类型为en-GBfr-CA的语言代码列表.

I have googled (well, DuckDuckGo'ed, actually) till I'm blue in the face, but cannot find a list of language codes of the type en-GB or fr-CA anywhere.

关于这些组件的资源非常丰富,尤其是 W3C I18n页面,但是我希望有一个简单的字母列表,如果可能的话,可以相当规范(例如这个).找不到.

There are excellent resources about the components, in particular the W3C I18n page, but I was hoping for a simple alphabetical listing, fairly canonical if possible (something like this one). Cannot find.

有人能指出我正确的方向吗?非常感谢!

Can anyone point me in the right direction? Many thanks!

推荐答案

有几种语言代码系统和几种区域代码系统,以及它们的组合.当您指的是W3C页面时,我假设您指的是 BCP 47中定义的系统.该系统是正交的,因为像en-GB和fr-CA这样的代码仅将语言代码和区域代码结合在一起.这意味着有很多可能的组合,其中大多数没有什么意义,例如ab-AX,这意味着阿布哈兹在奥兰语中说过(我认为,在理论上讲,任何人,尽管如此,也很少有人在阿布哈兹说过这种话)当然可以).

There are several language code systems and several region code systems, as well as their combinations. As you refer to a W3C page, I presume that you are referring to the system defined in BCP 47. That system is orthogonal in the sense that codes like en-GB and fr-CA simply combine a language code and a region code. This means a very large number of possible combinations, most of which make little sense, like ab-AX, which means Abkhaz as spoken in Åland (I don’t think anyone, still less any community, speaks Abkhaz there, though it is theoretically possible of course).

因此,任何语言区域组合列表都只是在某种意义上重要的实用组合列表,或者在某些特殊意义上受某些软件支持的组合.

So any list of language-region combinations would be just a pragmatic list of combinations that are important in some sense, or supported by some software in some special sense.

您发现的规范定义了一般原则以及不同子标签"(例如主要语言代码和地区代码)的权威来源.对于最重要的部分,官方注册机构维护三个和两个-字母ISO 639代码(用于语言),并且ISO网站包含两个-字母ISO 3166代码(用于区域).这些列表可读性很强,除这些主要资源外,我认为没有理由考虑使用这些资源,尤其是在可能的更改方面.

The specifications that you have found define the general principles and also the authoritative sources on different "subtags" (like primary language code and region code). For the most important parts, the official registration authority maintains the three- and two-letter ISO 639 codes for languages, and the ISO site contains the two-letter ISO 3166 codes for regions. The lists are quite readable, and I see no reason to consider using other than these primary resources, especially regarding possible changes.

这篇关于在哪里可以找到语言和地区代码列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆