/// <summary> /// Gets localized string for given key name and specified culture information. /// </summary> /// <param name="name">Key name</param> /// <param name="culture">culture information</param> /// <returns>Localized string</returns> protected virtual string L(string name, CultureInfo culture) { return(LocalizationSource.GetString(name, culture)); }
/// <summary> /// Gets localized string for given key name and current language with formatting strings. /// </summary> /// <param name="name">Key name</param> /// <param name="args">Format arguments</param> /// <returns>Localized string</returns> protected string L(string name, params object[] args) { return(LocalizationSource.GetString(name, args)); }
/// <summary> /// Gets localized string for given key name and current language. /// </summary> /// <param name="name">Key name</param> /// <returns>Localized string</returns> protected virtual string L(string name) { return(LocalizationSource.GetString(name)); }
protected string L(string name, CultureInfo cultureInfo, params object[] args) { return(LocalizationSource.GetString(name, cultureInfo, args)); }
public static void Warn(string localizationKeyOrMessage, LocalizationSource localizationSource = LocalizationSource.RemoteTranslation) { UserDialogs.Instance.Alert(Localize(localizationKeyOrMessage, localizationSource), L.Localize("Warning")); }
public static void Success(string localizationKeyOrMessage, LocalizationSource localizationSource = LocalizationSource.LocalTranslation) { UserDialogs.Instance.Alert(Localize(localizationKeyOrMessage, localizationSource), L.Localize("Success")); }