Completed
Last Updated: 06 Feb 2020 11:58 by ADMIN
Release LIB 2020.1.210 (2/10/2020)
Martin Ivanov
Created on: 24 Jan 2020 13:50
Category: Chat
Type: Bug Report
1
Chat: MessageGroup creation DateTime string doesn't use the current culture

Regardless of the current culture applied, the date shown on top of a group of message uses InvariantCulture (English). In comparison the time break date is formatted according to the culture.

This comes from a bug in WPF. https://stackoverflow.com/questions/520115/stringformat-localization-issues-in-wpf/520334#520334

To work this around, override the Language property metadata of FrameworkElement.

FrameworkElement.LanguageProperty.OverrideMetadata(
      typeof(FrameworkElement),
      new FrameworkPropertyMetadata(
          XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

0 comments