Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilanguage support for StringFormat and user input #14

Open
sevenate opened this issue Jul 19, 2012 · 0 comments
Open

Multilanguage support for StringFormat and user input #14

sevenate opened this issue Jul 19, 2012 · 0 comments

Comments

@sevenate
Copy link
Owner

Original report by sevenate (Bitbucket: sevenate, GitHub: sevenate).


Update internalization code to handle StringFormat and user input in binding in OS current culture format:

// Ensure the current culture passed into bindings
// is the OS culture. By default, WPF uses en-US
// as the culture, regardless of the system settings.
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof (FrameworkElement),
new FrameworkPropertyMetadata(
XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

See also: http://www.nbdtech.com/Blog/archive/2009/03/18/getting-a-wpf-application-to-pick-up-the-correct-regional.aspx
and only for silverlight: http://blogs.imeta.co.uk/jyoung/archive/2009/10/02/771.aspx (just for creating docs)

@sevenate sevenate added major and removed major labels Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant