-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Update HybridGlobalization error messages to remove obsolete guidance #122645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update HybridGlobalization error messages to remove obsolete guidance #122645
Conversation
Updated 6 error messages in Strings.resx that incorrectly told users to "Disable it to load larger ICU bundle" when HybridGlobalization=true. Since hybrid globalization can no longer be disabled on Apple mobile platforms, the messages now direct users to adjust their code or open an issue on https://github.com/dotnet/runtime. Co-authored-by: matouskozak <[email protected]>
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
… messages Per review feedback, changed error messages to use clearer platform-specific language "on Apple mobile platforms" instead of "when HybridGlobalization=true on this platform". Co-authored-by: matouskozak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Updates HybridGlobalization-related error messages in Strings.resx to reflect current platform constraints. The key change is removing guidance to disable HybridGlobalization (which is no longer possible on Apple mobile platforms) and directing users to adjust their code or report issues on GitHub instead.
- Replaces obsolete "Disable it to load larger ICU bundle" guidance with actionable advice
- Updates platform references from "when HybridGlobalization=true on this platform" to clearer "on Apple mobile platforms"
- Directs users to https://github.com/dotnet/runtime for reporting issues
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
|
Tagging subscribers to this area: @dotnet/area-system-globalization |
Per review feedback, simplified error messages by removing the "Adjust your code or open an issue on https://github.com/dotnet/runtime if this is impacting your use case." text from all 6 HybridGlobalization error messages. Co-authored-by: matouskozak <[email protected]>
Changed "CompareOptions = {0} are not supported" to
"CompareOptions = {0} is not supported" since CompareOptions
is a singular entity being compared to a value.
Co-authored-by: matouskozak <[email protected]>
Reverted "is" back to "are" for CompareOptions messages since the passed value can represent option(s) which can be plural. Co-authored-by: matouskozak <[email protected]>
main PR
Description
HybridGlobalization error messages in
Strings.resxincorrectly told users to "Disable it to load larger ICU bundle" — but hybrid globalization can no longer be disabled on Apple mobile platforms.Updated 6 error messages to:
Affected messages:
PlatformNotSupported_HybridGlobalizationWithCompareOptionsPlatformNotSupported_HybridGlobalizationWithMixedCompositionsPlatformNotSupported_HybridGlobalizationWithCompareOptionsForCulturePlatformNotSupported_HybridGlobalizationWithMatchLengthPlatformNotSupported_HybridGlobalizationPlatformNotSupportedWithReason_HybridGlobalizationCustomer Impact
Users hitting these exceptions receive incorrect guidance suggesting a configuration option that no longer exists.
Regression
No. The guidance was always incorrect for these platforms; hybrid globalization was never disableable on Apple mobile.
Testing
Risk
Low. String-only change with no behavioral impact.
Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.