Steema.Teechart.Net fails to get license info when in Czech Language/culture info in Xamarin.Forms Android / IOS
Posted: Wed Jun 12, 2019 4:14 pm
Current version: Steema.TeeChart.NET.Xamarin.Forms (4.2018.10.17)
Steema.Teechart.Net fails to find the license file when in Czech Language/culture info in Xamarin.Forms Android / IOS, and therefore displays the evaluation watermark. 13 Other languages work fine (English, French, Chinese, Swedish, Spanish, Thai, German, Japanese, Korean, Polish, Dutch, Arabic and Portueges). When selecting the new language the new culture info is passed to the app. this also occurs when the app starts for the system language. What I don't understand is why it's only Czech that does it. I've looked through the documentation for Teechart and don't see anything obvious. also, the library used for cultures is Plugin.Multilingual.CrossMultilingual.
Steema.Teechart.Net fails to find the license file when in Czech Language/culture info in Xamarin.Forms Android / IOS, and therefore displays the evaluation watermark. 13 Other languages work fine (English, French, Chinese, Swedish, Spanish, Thai, German, Japanese, Korean, Polish, Dutch, Arabic and Portueges). When selecting the new language the new culture info is passed to the app. this also occurs when the app starts for the system language. What I don't understand is why it's only Czech that does it. I've looked through the documentation for Teechart and don't see anything obvious. also, the library used for cultures is Plugin.Multilingual.CrossMultilingual.
Code: Select all
public class
{
public string DisplayName { get; internal set; }
public string ShortName { get; internal set; }
public SupportedLanguages Version { get; internal set; }
}
internal static ObservableCollection<Language> Languages { get; set; } = new ObservableCollection<Language>()
{
new Language { DisplayName = "عربى - Arabic", ShortName = "ar" , Version = SupportedLanguages.Arabic},
new Language { DisplayName = "中文 - Chinese (simplified)", ShortName = "zh-Hans", Version = SupportedLanguages.Chinese },
new Language { DisplayName = "čeština - Czech", ShortName = "cs", Version = SupportedLanguages.Czech },
new Language { DisplayName = "Nederlands - Dutch", ShortName = "nl", Version = SupportedLanguages.Dutch },
new Language { DisplayName = "English", ShortName = "en", Version = SupportedLanguages.English },
new Language { DisplayName = "Français - French", ShortName = "fr", Version = SupportedLanguages.French },
new Language { DisplayName = "Deutsche - German", ShortName = "de", Version = SupportedLanguages.German },
new Language { DisplayName = "日本語 - Japanese", ShortName = "ja", Version = SupportedLanguages.Japanese },
new Language { DisplayName = "한국어 - Korean", ShortName = "ko", Version = SupportedLanguages.Korean },
new Language { DisplayName = "Polskie - Polish", ShortName = "pl", Version = SupportedLanguages.Polish },
new Language { DisplayName = "Português - Portuguese", ShortName = "pt", Version = SupportedLanguages.Portuguese },
new Language { DisplayName = "Español - Spanish", ShortName = "es", Version = SupportedLanguages.Spanish },
new Language { DisplayName = "svenska - Swedish", ShortName = "sv", Version = SupportedLanguages.Swedish },
new Language { DisplayName = "ไทย - Thai", ShortName = "th", Version = SupportedLanguages.Thai }
};
//On selection of the language, this is called:
CultureInfo culture = new CultureInfo(ViewModel.SelectedLanguage.ShortName);
CrossMultilingual.Current.CurrentCultureInfo = culture;