diff --git a/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs b/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs index 8dbea378b36..9379c6bbbc4 100644 --- a/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs +++ b/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs @@ -32,7 +32,6 @@ CULTURE ISO ISO WIN DISPLAYNAME ENGLISHNAME ar ar ara ARA Arabic Arabic bg bg bul BGR Bulgarian Bulgarian ca ca cat CAT Catalan Catalan -zh-Hans zh zho CHS Chinese (Simplified) Chinese (Simplified) cs cs ces CSY Czech Czech da da dan DAN Danish Danish de de deu DEU German German @@ -41,9 +40,10 @@ en en eng ENU English English es es spa ESP Spanish Spanish fi fi fin FIN Finnish Finnish zh zh zho CHS Chinese Chinese -zh-Hant zh zho CHT Chinese (Traditional) Chinese (Traditional) -zh-CHS zh zho CHS Chinese (Simplified) Legacy Chinese (Simplified) Legacy -zh-CHT zh zho CHT Chinese (Traditional) Legacy Chinese (Traditional) Legacy +zh-Hans zh zho CHS Chinese (Simplified) Chinese (Simplified) +zh-Hant zh zho ZHH Chinese (Traditional) Chinese (Traditional) + +Note: zh-Hant returns ZHH when using ICU (default). When NLS mode is enabled, it returns CHT. */ // diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb b/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb index c2e2d571fd7..3b4c6c22f38 100644 --- a/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb @@ -29,7 +29,6 @@ Module Module1 'ar ar ara ARA Arabic Arabic 'bg bg bul BGR Bulgarian Bulgarian 'ca ca cat CAT Catalan Catalan -'zh-Hans zh zho CHS Chinese (Simplified) Chinese (Simplified) 'cs cs ces CSY Czech Czech 'da da dan DAN Danish Danish 'de de deu DEU German German @@ -38,9 +37,10 @@ Module Module1 'es es spa ESP Spanish Spanish 'fi fi fin FIN Finnish Finnish 'zh zh zho CHS Chinese Chinese -'zh-Hant zh zho CHT Chinese (Traditional) Chinese (Traditional) -'zh-CHS zh zho CHS Chinese (Simplified) Legacy Chinese (Simplified) Legacy -'zh-CHT zh zho CHT Chinese (Traditional) Legacy Chinese (Traditional) Legacy +'zh-Hans zh zho CHS Chinese (Simplified) Chinese (Simplified) +'zh-Hant zh zho ZHH Chinese (Traditional) Chinese (Traditional) +' +'Note: zh-Hant returns ZHH when using ICU (default). When NLS mode is enabled, it returns CHT. End Module ' diff --git a/xml/System.Globalization/CultureInfo.xml b/xml/System.Globalization/CultureInfo.xml index b438608fc5f..8dc23575fda 100644 --- a/xml/System.Globalization/CultureInfo.xml +++ b/xml/System.Globalization/CultureInfo.xml @@ -3378,7 +3378,7 @@ The following code example shows that CultureInfo.Clone also clones the [!NOTE] -> The example displays the older `zh-CHS` and `zh-CHT` culture names with the 0x0004 and 0x7C04 culture identifiers, respectively. However, your Windows Vista applications should use the `zh-Hans` name instead of zh-CHS and the `zh-Hant` name instead of zh-CHT. The `zh-Hans` and `zh-Hant` names represent the current standard, and should be used unless you have a reason for using the older names. +> The `zh-Hans` and `zh-Hant` names represent the current standard for Chinese cultures. Older applications might reference the legacy `zh-CHS` and `zh-CHT` culture names, but these should be replaced with `zh-Hans` and `zh-Hant` respectively in modern applications. :::code language="csharp" source="~/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs" id="Snippet1"::: :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb" id="Snippet1":::