Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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);
 }