Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 protected string L(string name, CultureInfo cultureInfo, params object[] args)
 {
     return(LocalizationSource.GetString(name, cultureInfo, args));
 }
Exemple #5
0
 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"));
 }