MahApps / MahApps/MahApps.Metro
Can't localize globalization
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.8k
- Forks
- 2.4k
- Avg merge
- 1h 2m
- Merged PRs (30d)
- 56
Description
I want to set Application.Current.Dispatcher.Thread.CurrentUICulture
To localize, but not ,if I reference
When, the right-click menu of TextBox on my form is Chinese language, and set Application.Current.Dispatcher.Thread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
At this time, the right-click menu of TextBox is not changed to English language
If I don't reference it, I can change it
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown ResourceDictionary reference and the Application.Current.Dispatcher.Thread.CurrentUICulture assignment, comparing the TextBox right-click menu with and without the MahApps.Metro Controls.xaml resource. Then inspect the referenced control styles and related localization behavior; done means the menu changes to English after setting the culture while the resource remains referenced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100