/// <summary> /// Initializes a new instance of the <see cref="SourceTypeConverter" /> class. /// </summary> /// <param name="localizationRegistry">The localization registry.</param> public SourceTypeConverter(ILocalizationRegistry localizationRegistry) : base(localizationRegistry) { }
/// <summary> /// Initializes a new instance of the <see cref="LocalizableObject" /> class. /// </summary> /// <param name="localizationRegistry">The localization registry.</param> protected LocalizableObject(ILocalizationRegistry localizationRegistry = null) { LocalizationRegistry = localizationRegistry; }
public VersionConverter(ILocalizationRegistry localizationRegistry) : base(localizationRegistry) { }
/// <summary> /// Initializes a new instance of the <see cref="BoolConverter" /> class. /// </summary> /// <param name="localizationRegistry">The localization registry.</param> public BoolConverter(ILocalizationRegistry localizationRegistry) : base(localizationRegistry) { }
/// <summary> /// Gets the string. /// </summary> /// <param name="registry">The registry.</param> /// <param name="key">The key.</param> /// <param name="args">The args.</param> /// <returns></returns> public static string GetString(this ILocalizationRegistry registry, string key, params object[] args) { return(string.Format(registry.CurrentProvider.GetString(key), args)); }
/// <summary> /// Gets the string from CurrentProvider. /// </summary> /// <param name="registry">The registry.</param> /// <param name="key">The key.</param> /// <returns></returns> public static string GetString(this ILocalizationRegistry registry, string key) { return(registry.CurrentProvider.GetString(key)); }
/// <summary> /// Initializes a new instance of the <see cref="BaseConverter{T}" /> class. /// </summary> /// <param name="localizationRegistry">The localization registry.</param> public BaseConverter(ILocalizationRegistry localizationRegistry) { this.localizationRegistry = localizationRegistry; }