Language Strings

setlocale_create_locale 函数均可在不使用 Unicode 代码页的操作系统上使用 Windows NLS API 支持的语言。 有关操作系统版本支持的语言的列表,请参阅区域语言支持 (NLS) API 参考。 语言字符串可以是支持语言列表的“语言”和“语言名称缩写”列中的任意值。 有关操作系统版本的语言支持的其他信息,请参阅“[MS-LCID]:Windows 语言代码标识符 (LCID) 参考”中的附录 A:产品行为

C 运行库实现也支持这些语言字符串:

语言字符串 等效区域设置名称
american zh-CN
american english zh-CN
american-english zh-CN
australian en-AU
belgian nl-BE
canadian en-CA
chh zh-HK
chi zh-SG
chinese zh
chinese-hongkong zh-HK
chinese-simplified zh-CN
chinese-singapore zh-SG
chinese-traditional zh-TW
dutch-belgian nl-BE
english-american zh-CN
english-aus en-AU
english-belize en-BZ
english-can en-CA
english-caribbean en-029
english-ire en-IE
english-jamaica en-JM
english-nz en-NZ
english-south africa en-ZA
english-trinidad y tobago en-TT
english-uk en-GB
english-us zh-CN
english-usa zh-CN
french-belgian fr-BE
french-canadian fr-CA
french-luxembourg fr-LU
french-swiss fr-CH
german-austrian de-AT
german-lichtenstein de-LI
german-luxembourg de-LU
german-swiss de-CH
irish-english en-IE
italian-swiss it-CH
norwegian no
norwegian-bokmal nb-NO
norwegian-nynorsk nn-NO
portuguese-brazilian pt-BR
spanish-argentina es-AR
spanish-bolivia es-BO
spanish-chile es-CL
spanish-colombia es-CO
spanish-costa rica es-CR
spanish-dominican republic es-DO
spanish-ecuador es-EC
spanish-el salvador es-SV
spanish-guatemala es-GT
spanish-honduras es-HN
spanish-mexican es-MX
spanish-modern es-ES
spanish-nicaragua es-NI
spanish-panama es-PA
spanish-paraguay es-PY
spanish-peru es-PE
spanish-puerto rico es-PR
spanish-uruguay es-UY
spanish-venezuela es-VE
swedish-finland sv-FI
swiss de-CH
uk en-GB
us zh-CN
usa zh-CN

另请参阅

区域设置名称、语言和国家/地区字符串
国家/地区字符串
setlocale、_wsetlocale
_create_locale、_wcreate_locale