-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description
Hello,
I'm not really sure if this is the right repo or if this is the designed behavior. Please correct me if I am wrong.
I want to ask a question about the FontStyle and FontWeight structs.
We use these in our products to populate some combos so that users can adjust their selected fonts.
`
IEnumerable CreateFontWeights() {
yield return System.Windows.FontWeights.Normal;
yield return System.Windows.FontWeights.Bold;
yield return System.Windows.FontWeights.Thin;
}
IEnumerable CreateFontStyles() {
yield return System.Windows.FontStyles.Normal;
yield return System.Windows.FontStyles.Italic;
yield return System.Windows.FontStyles.Oblique;
}
`
When ann app is localized, our editors still display these values in English. I do not see a simple way to change this. Google brought me some related topics:
https://stackoverflow.com/questions/1472376/c-sharp-wpf-getting-localized-fontfamily
https://social.msdn.microsoft.com/Forums/en-US/995361e9-e3ac-4b2c-aab9-06bd311d734d/displaying-font-styles-in-localized-name
Is this the right way to localize these strings?
Configuration
.NET 5
Win 10
x64/x86
Nope
Regression?
Did not test previous versions, pretty sure it works the same way there.