If panel supports localization, it shall realize ILocalizableComponent interface.
/// <summary> /// If designed component supports multi-language /// localization, it shall implement this interface /// </summary> public interface ILocalizableComponent : IExternalComponent { /// <summary> /// Apply new localization environment /// </summary> /// <param name="newLocale">new locale name</param> void SetLocale(string newLocale); /// <summary> /// Visible name of designed component /// </summary> string VisibleName { get; } }
SetLocale – called at language switch, VisibleName – component name at panel (need to be changed at language switch)
Locale is received in newLocale argument as string identificator. For now supported are: "en", "ru", "ar", "jp", "ch_sm", "ch_tr","gr", "fr" (english, russian, arabic, japanesse, chinesse, german, francias)