Sir Rufo
Sir Rufo
CC#
Created by Sir Rufo on 4/21/2023 in #help
❔ 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?
2 replies