基于 ISO-639/ISO-3166 的语言/国家/地区区域设置名称与 Windows 名称之间的转换表

发布于 2024-09-13 21:20:42 字数 1115 浏览 3 评论 0原文

我想转换 POSIX 语言环境名称,例如使用的 en_USde_DE ISO-639-1 和 ISO-3166 代码 到 Windows 的 English_United StatesGerman_Germany 并返回。

我在 MSDN 网站上找到了下表:

但是他们非常偏心。例如,这些表缺少阿拉伯语、希伯来语和我知道支持 Hebrew_Israel 的许多其他语言环境。

在哪里可以找到完全更新的 Windows 区域设置名称和 ISO 639/3166 代码表。

注意:我需要它在 Windows 2000 或至少 XP 到 Windows 7 上工作,所以我不想继续 事实上,Vista 和 7 支持 BCP-47 样式区域设置名称。

编辑:我有一个 ISO-639< /a> 语言代码和 ISO-3166 国家/地区代码。但我需要知道支持哪些语言/国家,以及我应该使用它们在 MSVC 下的实际命名方式。

I want to convert POSIX locale names like en_US, de_DE that use
ISO-639-1 and ISO-3166 codes
to Windows ones English_United States, German_Germany and back.

I had found following tables on MSDN site:

However they are very partial. For example these tables miss Arabic, Hebrew and many other locales that I know are supported Hebrew_Israel.

Where can I find fully updated tables of Windows locale names and ISO 639/3166 codes.

Note: I need it to work from Windows 2000 or at least XP to Windows 7, so I don't want to relay on
fact that Vista and 7 support BCP-47 style locale names.

Edit: I have an ISO-639 language codes and ISO-3166 country/territory codes. But I need to know what languages/countries are supported and how they are actually named under MSVC should I use.

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

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

发布评论

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

评论(1

忘年祭陌 2024-09-20 21:20:42

我想我已经找到了答案: http://msdn.microsoft.com/ en-us/library/cc233965.aspx

该文档包括区域设置 ID、它们的名称和 ISO 代码...

I think I had found the answer: http://msdn.microsoft.com/en-us/library/cc233965.aspx

This documents includes locale ids, their names and ISO codes...

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