Table of conversion of ISO-639/ISO-3166 based language/country locale name to Windows ones and back

我的未来我决定 提交于 2019-12-08 08:26:47

问题


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:

  • Languages http://msdn.microsoft.com/en-us/library/39cwe7zf(v=VS.71).aspx
  • Countries http://msdn.microsoft.com/en-us/library/cdax410z(v=VS.71).aspx

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.


回答1:


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...



来源:https://stackoverflow.com/questions/3477555/table-of-conversion-of-iso-639-iso-3166-based-language-country-locale-name-to-wi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!