Esempio n. 1
0
 /// <summary>
 /// Gets localized string for given key name and current language with formatting strings.
 /// </summary>
 /// <param name="name">Key name</param>
 /// <param name="culture">culture information</param>
 /// <param name="args">Format arguments</param>
 /// <returns>Localized string</returns>
 protected string L(string name, CultureInfo culture, params object[] args)
 {
     return(LocalizationSource.GetString(name, culture, args));
 }
Esempio n. 2
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));
 }
Esempio n. 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));
 }
Esempio n. 4
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>
 public string L(string name, params object[] args)
 {
     return(LocalizationSource.GetString(name, args));
 }
 /// <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 virtual string L(string name, params object[] args)
 {
     return(LocalizationSource.GetString(name, args));
 }
Esempio n. 6
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);
 }