MahApps / MahApps/MahApps.Metro

Can't localize globalization

Open
#4,155 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.