-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
CultureInfo should independent from local computer settings (Lombiq Technologies: OCORE-86) #12467
Conversation
Seems I need to rename |
src/OrchardCore.Modules/OrchardCore.Localization/CultureLocalizationOptions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Localization/CultureSettings.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Abstractions/Localization/CultureScope.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Localization/Models/LocalizationSettings.cs
Outdated
Show resolved
Hide resolved
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.
Will review it later
@sebastienros I just use If sound looks good I will remove everything I added related to |
Take care, about There are 2 ctors So the 2 defined values of the current enum So to not be confused with the "user" we could name this option field Not sure we need to bind this IOptions to the configuration (e.g. from appsettins.json), if so and if we bind this field individually, if we use Or if we use Maybe better to name this IOptions |
Sure
Oops, seem I made a mistake here, I presumed it's a default culture by default
I never mind with this option as I mentioned above
It was there before, but while all the modules adding the options in module project and |
Yes as I mentioned here #11228 (comment)
Just saw that you now use |
May be I didn't notice that, coz all the time I'm trying to focus on the PR comment, sorry for that
It's not wrong because the default value of
Because the https://referencesource.microsoft.com/#mscorlib/system/globalization/cultureinfo.cs,325 |
Because the So if |
Nooo, you are right Jean, I just confused by the
That's the point, again sorry for inconvience and ignore my above comments |
Believe it or not the |
I need to do a final quick test again |
Yes I agree ;) |
Everythings looks as expected |
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.
Nice work!
src/OrchardCore/OrchardCore.Localization.Abstractions/OrchardCoreRequestLocalizationOptions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Localization.Abstractions/OrchardCoreRequestLocalizationOptions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Localization.Abstractions/OrchardCoreRequestLocalizationOptions.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Abstractions/Localization/CultureScope.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Localization.Abstractions/OrchardCoreRequestLocalizationOptions.cs
Outdated
Show resolved
Hide resolved
FYI I created a PR in aspnet repo while I'm working on this feature, finally it got merge. I might need to open a draft PR to change the API with the one that will be built-in in .NET 8.0 |
Great! |
I believe this PR introduced this issue #12610 |
Thanks @alafi I will check the related issue |
Fixes #11228