Calendar localization #580

Closed
Spyspyspy opened this Issue Dec 20, 2016 · 2 comments

Projects

None yet

2 participants

@Spyspyspy

Hello. The calendar shows choosen date in english (like in screen). And months in russian. How can i change this date, that it become only russian or english text?

321
123

@ButchersBoy
Owner

Something like this:

    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
            FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(
                        XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

            base.OnStartup(e);
        }
    }
@Spyspyspy

Thank you very much!

@Spyspyspy Spyspyspy closed this Dec 20, 2016
@Spyspyspy Spyspyspy reopened this Dec 20, 2016
@Spyspyspy Spyspyspy closed this Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment