C
C#2y ago
Sir Rufo

❔ Localization of FilePicker dialog macOS

When using the FilePicker then the Dialog is presented in english language ... every folder like the Application folder is expected to be presented with the localized name, but it is not. I already check Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture or CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture. All of them have the expected culture. When dealing with WPF you have to call
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof( FrameworkElement ),
new FrameworkPropertyMetadata( XmlLanguage.GetLanguage( CultureInfo.CurrentCulture.IetfLanguageTag ) ) );
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof( FrameworkElement ),
new FrameworkPropertyMetadata( XmlLanguage.GetLanguage( CultureInfo.CurrentCulture.IetfLanguageTag ) ) );
to really have your language set. Does MAUI also has such a special spell to tell, yes I like to have the language that you already have to have the FilePicker dialog localized?
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server