Skip to content

Conversation

@rpetrusha
Copy link

@rpetrusha rpetrusha commented Nov 3, 2018

Noted deprecated CultureTypes members

Fixes dotnet/docs#7635

This PR depends on dotnet/samples#438.
Once this PR is merged, dotnet/samples#437 can be merged.

//cc @tarekgh

@rpetrusha rpetrusha added the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Nov 3, 2018
@rpetrusha rpetrusha self-assigned this Nov 3, 2018
@rpetrusha rpetrusha added the WIP label Nov 3, 2018
@rpetrusha rpetrusha removed the WIP label Nov 3, 2018
@rpetrusha rpetrusha changed the title [WIP] Noted deprecated CultureTypes members Noted deprecated CultureTypes members Nov 3, 2018
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes LGTM @rpetrusha

You can :shipit: when ready.

I like the way you split the samples PR in 2: one preceding and one following this PR. We should adopt that as a practice for our team.

<MemberValue>7</MemberValue>
<Docs>
<summary>All cultures that ship with the .NET Framework, including neutral and specific cultures, cultures installed in the Windows operating system, and custom cultures created by the user.
<summary>All cultures that ship with .NET, including neutral and specific cultures, cultures installed with the operating system, and custom cultures created by the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to say this is for .NET 4+

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.NET 4.0+ don't ship any culture data. we just depend on the cultures exist in the OS (Windows) or whatever cultures included in the ICU ( for .Net Core on Linux/OSX). 2.x and 3.x are the versions that carry culture data

## Remarks
Note that not all cultures supported by the .NET Framework are installed in the Windows operating system.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement can be true from 2.0 versions but not for 4.0+

## Remarks
If it is used as an argument to the <xref:System.Globalization.CultureInfo.GetCultures%2A?displayProperty=nameWithType> method, the method returns an empty array.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is 4.0+ behavior and not 2.x/3.x.

@rpetrusha rpetrusha merged commit 3f6b5b0 into dotnet:master Nov 7, 2018
@rpetrusha rpetrusha deleted the cultures branch November 7, 2018 17:47
@tarekgh
Copy link
Member

tarekgh commented Nov 7, 2018

@rpetrusha want to ensure you saw my comments.

@rpetrusha
Copy link
Author

I have no idea why, @tarekgh, but I didn't see them. Since this was merged, I'll open a new PR to address them.

@mairaw mairaw removed the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation related to cultures (locales) needs updating: it is Windows-centric and doesn't mention deprecated elements

4 participants