0

如何在 C++/WinAPI 应用程序中列出中性文化?对于特定的文化 EnumSystemLocales 函数工作得相当好,但由于某种原因它没有列出中性文化。最后,我想要 LCID<=> 文化名称映射(例如 1045<=>pl-PL 和 21<=>pl)。

4

1 回答 1

1

If all you want to do is to map between LCIDs and locale names, then LCIDToLocaleName with LOCALE_ALLOW_NEUTRAL_NAMES flag (Win 7 and above) and LocaleNameToLCID also with LOCALE_ALLOW_NEUTRAL_NAMES flag (Win 7 and above) is probably what you want. EnumSystemLocalesEx with LOCALE_NEUTRALDATA flag (Win 7 and above) will list the neutral cultures.

于 2013-03-19T16:44:27.147 回答