问题
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