Skip to content

Commit e31b1d1

Browse files
Copilotgewarren
andcommitted
Remove zh-CHS and zh-CHT from neutral cultures example - these legacy cultures are not returned by GetCultures(CultureTypes.NeutralCultures)
Co-authored-by: gewarren <[email protected]>
1 parent 48fe208 commit e31b1d1

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ es es spa ESP Spanish Spanish
4242
fi fi fin FIN Finnish Finnish
4343
zh zh zho CHS Chinese Chinese
4444
zh-Hant zh zho ZHH Chinese (Traditional) Chinese (Traditional)
45-
zh-CHS zh zho CHS Chinese (Simplified) Chinese (CHS)
46-
zh-CHT zh zho CHT Chinese (Traditional) Chinese (CHT)
4745
4846
*/
4947
// </snippet1>

snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ Module Module1
3838
'es es spa ESP Spanish Spanish
3939
'fi fi fin FIN Finnish Finnish
4040
'zh zh zho CHS Chinese Chinese
41-
'zh-Hant zh zho ZHH Chinese (Traditional) Chinese (Traditional)
42-
'zh-CHS zh zho CHS Chinese (Simplified) Chinese (CHS)
43-
'zh-CHT zh zho CHT Chinese (Traditional) Chinese (CHT)
41+
'zh-Hant zh zho ZHH Chinese (Traditional) Chinese (Traditional)
4442

4543
End Module
4644
' </snippet1>

xml/System.Globalization/CultureInfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3378,7 +3378,7 @@ The following code example shows that CultureInfo.Clone also clones the <xref:Sy
33783378
The following code example displays several properties of the neutral cultures.
33793379
33803380
> [!NOTE]
3381-
> 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.
3381+
> The `zh-Hans` and `zh-Hant` names represent the current standard for Chinese cultures. Older applications may 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.
33823382
33833383
:::code language="csharp" source="~/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs" id="Snippet1":::
33843384
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/VB/getcultures.vb" id="Snippet1":::

0 commit comments

Comments
 (0)