国际化的语言代码标准是什么?

发布于 2024-11-28 01:11:16 字数 502 浏览 0 评论 0原文

表示语言名称的 ISO 代码虽然用于网站 实际上不足以实现软件国际化目的,因为它不区分变体同一语言,例如葡萄牙葡萄牙语和巴西葡萄牙语。

一些编程语言操作系统通过添加后缀来指定变体(分别为 pt_PT 和 pt_BR)来解决此问题。

但是有没有标准化的努力来解决这个问题呢?

The ISO Codes for the Representation of Names of Languages although used for websites is actually insufficient for software internationalization purposes, since it doesn't distinguish between variants of the same language, such as Portuguese of Portugal and Brazilian Portuguese.

Some programming languages and operative systems solve this problem by adding a suffix to specify the variants (pt_PT and pt_BR respectively).

But are there any standardization efforts to solve this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

分分钟 2024-12-05 01:11:16

您可能知道,某些语言也支持区域设置变体,例如挪威尼诺斯克语或挪威博克马尔语(分别为 no_NO_NY 和 no_NO)。

Windows 操作系统支持 LCID 的概念其中包含语言、子语言、排序选项等。

现在,回答您的问题:该领域是否有标准化工作?
说实话,我从来没有听说过。当然,这并不意味着没有人在研究它。但是,我相信语言标识符 ISO631ISO3166 存在的原因与通过计算机进行信息交换无关。这些代码是外贸中需要的,我非常有信心这就是创建它们的原因。

请考虑到区域设置表示并未标准化,您会看到类似 en_US、en-US 和 1033 之类的内容。如果我们想创建某种标准,我们需要首先考虑它,然后作为扩展标准化变体。我认为这不会很快发生,如果有的话......

Some languages as you may know also support Locale variants, for example Norwegian Nynorsk or Norwegian Bokmal (as no_NO_NY and no_NO respectively).

Windows OS supports the concept of LCID which contains Language, Sub-Language, sorting options, etc.

Now, onto your question: is there any standardization effort in this area?
To be honest, I have never heard of one. That of course doesn't mean that nobody is working on it. However, I believe that both language identifiers ISO631 and ISO3166 exist for reasons not related to information exchange via computers. These codes were needed in foreign trade and I am quite confident that this is the reason they were created.
Please take into account that Locale representation is not standardized, you would see something like en_US, en-US and 1033 for the same thing. If we want to create some sort of standard, we need to think about it first, then as an extension standardize variants. I don't think it will happen very soon if ever...

乖乖公主 2024-12-05 01:11:16

维基百科列出了一些语言代码。 pt_BR 格式是 IETF 语言标记

Wikipedia lists a couple of language codes. The pt_BR format is an IETF language tag.

浅忆 2024-12-05 01:11:16

您可能更喜欢 ISO-639-3。没有人喜欢-2。

You might like ISO-639-3 better. No one liked -2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文