Language StringsLanguage Strings

setlocale_create_locale 函数均可在不使用 Unicode 代码页的操作系统上使用 Windows NLS API 支持的语言。The setlocale and _create_locale functions can use the Windows NLS API supported languages on operating systems that do not use the Unicode code page. 有关操作系统版本支持的语言的列表,请参阅区域语言支持 (NLS) API 参考For a list of supported languages by operating system version, see National Language Support (NLS) API Reference. 语言字符串可以是支持语言列表的“语言”和“语言名称缩写”列中的任意值。The language string can be any of the values in the Language and Language name abbreviation columns of the list of supported languages. 有关操作系统版本的语言支持的其他信息,请参阅“[MS-LCID]:Windows 语言代码标识符 (LCID) 参考”中的附录 A:产品行为For additional information on language support by operating system version, see Appendix A: Product Behavior in [MS-LCID]: Windows Language Code Identifier (LCID) Reference.

C 运行库实现也支持这些语言字符串:The C run-time library implementation also supports these language strings:

语言字符串Language string 等效区域设置名称Equivalent Locale Name
americanamerican zh-CNen-US
american englishamerican english zh-CNen-US
american-englishamerican-english zh-CNen-US
australianaustralian en-AUen-AU
belgianbelgian nl-BEnl-BE
canadiancanadian en-CAen-CA
chhchh zh-HKzh-HK
chichi zh-SGzh-SG
chinesechinese zhzh
chinese-hongkongchinese-hongkong zh-HKzh-HK
chinese-simplifiedchinese-simplified zh-CNzh-CN
chinese-singaporechinese-singapore zh-SGzh-SG
chinese-traditionalchinese-traditional zh-TWzh-TW
dutch-belgiandutch-belgian nl-BEnl-BE
english-americanenglish-american zh-CNen-US
english-ausenglish-aus en-AUen-AU
english-belizeenglish-belize en-BZen-BZ
english-canenglish-can en-CAen-CA
english-caribbeanenglish-caribbean en-029en-029
english-ireenglish-ire en-IEen-IE
english-jamaicaenglish-jamaica en-JMen-JM
english-nzenglish-nz en-NZen-NZ
english-south africaenglish-south africa en-ZAen-ZA
english-trinidad y tobagoenglish-trinidad y tobago en-TTen-TT
english-ukenglish-uk en-GBen-GB
english-usenglish-us zh-CNen-US
english-usaenglish-usa zh-CNen-US
french-belgianfrench-belgian fr-BEfr-BE
french-canadianfrench-canadian fr-CAfr-CA
french-luxembourgfrench-luxembourg fr-LUfr-LU
french-swissfrench-swiss fr-CHfr-CH
german-austriangerman-austrian de-ATde-AT
german-lichtensteingerman-lichtenstein de-LIde-LI
german-luxembourggerman-luxembourg de-LUde-LU
german-swissgerman-swiss de-CHde-CH
irish-englishirish-english en-IEen-IE
italian-swissitalian-swiss it-CHit-CH
norwegiannorwegian nono
norwegian-bokmalnorwegian-bokmal nb-NOnb-NO
norwegian-nynorsknorwegian-nynorsk nn-NOnn-NO
portuguese-brazilianportuguese-brazilian pt-BRpt-BR
spanish-argentinaspanish-argentina es-ARes-AR
spanish-boliviaspanish-bolivia es-BOes-BO
spanish-chilespanish-chile es-CLes-CL
spanish-colombiaspanish-colombia es-COes-CO
spanish-costa ricaspanish-costa rica es-CRes-CR
spanish-dominican republicspanish-dominican republic es-DOes-DO
spanish-ecuadorspanish-ecuador es-ECes-EC
spanish-el salvadorspanish-el salvador es-SVes-SV
spanish-guatemalaspanish-guatemala es-GTes-GT
spanish-hondurasspanish-honduras es-HNes-HN
spanish-mexicanspanish-mexican es-MXes-MX
spanish-modernspanish-modern es-ESes-ES
spanish-nicaraguaspanish-nicaragua es-NIes-NI
spanish-panamaspanish-panama es-PAes-PA
spanish-paraguayspanish-paraguay es-PYes-PY
spanish-peruspanish-peru es-PEes-PE
spanish-puerto ricospanish-puerto rico es-PRes-PR
spanish-uruguayspanish-uruguay es-UYes-UY
spanish-venezuelaspanish-venezuela es-VEes-VE
swedish-finlandswedish-finland sv-FIsv-FI
swissswiss de-CHde-CH
ukuk en-GBen-GB
usus zh-CNen-US
usausa zh-CNen-US

另请参阅See Also

区域设置名称、语言和国家/地区字符串 Locale Names, Languages, and Country/Region Strings
国家/地区字符串 Country/Region Strings
setlocale、_wsetlocale setlocale, _wsetlocale
_create_locale、_wcreate_locale_create_locale, _wcreate_locale