Class AbpDictionaryBasedStringLocalizer
Inheritance
AbpDictionaryBasedStringLocalizer
Assembly: Volo.Abp.Localization.dll
Syntax
public class AbpDictionaryBasedStringLocalizer : IAbpStringLocalizer, IStringLocalizer
Constructors
AbpDictionaryBasedStringLocalizer(LocalizationResourceBase, List<IStringLocalizer>, AbpLocalizationOptions)
Declaration
public AbpDictionaryBasedStringLocalizer(LocalizationResourceBase resource, List<IStringLocalizer> baseLocalizers, AbpLocalizationOptions abpLocalizationOptions)
Parameters
Properties
AbpLocalizationOptions
Declaration
public AbpLocalizationOptions AbpLocalizationOptions { get; }
Property Value
BaseLocalizers
Declaration
public List<IStringLocalizer> BaseLocalizers { get; }
Property Value
this[string]
Declaration
public virtual LocalizedString this[string name] { get; }
Parameters
Type |
Name |
Description |
string |
name |
|
Property Value
this[string, object[]]
Declaration
public virtual LocalizedString this[string name, params object[] arguments] { get; }
Parameters
Property Value
Resource
Declaration
public LocalizationResourceBase Resource { get; }
Property Value
Methods
GetAllStrings(bool)
Declaration
public IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures)
Parameters
Type |
Name |
Description |
bool |
includeParentCultures |
|
Returns
GetAllStrings(bool, bool, bool)
Declaration
public IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures, bool includeBaseLocalizers, bool includeDynamicContributors)
Parameters
Type |
Name |
Description |
bool |
includeParentCultures |
|
bool |
includeBaseLocalizers |
|
bool |
includeDynamicContributors |
|
Returns
GetAllStrings(string, bool, bool, bool)
Declaration
protected virtual IReadOnlyList<LocalizedString> GetAllStrings(string cultureName, bool includeParentCultures = true, bool includeBaseLocalizers = true, bool includeDynamicContributors = true)
Parameters
Type |
Name |
Description |
string |
cultureName |
|
bool |
includeParentCultures |
|
bool |
includeBaseLocalizers |
|
bool |
includeDynamicContributors |
|
Returns
GetAllStringsAsync(bool)
Declaration
public Task<IEnumerable<LocalizedString>> GetAllStringsAsync(bool includeParentCultures)
Parameters
Type |
Name |
Description |
bool |
includeParentCultures |
|
Returns
GetAllStringsAsync(bool, bool, bool)
Declaration
public Task<IEnumerable<LocalizedString>> GetAllStringsAsync(bool includeParentCultures, bool includeBaseLocalizers, bool includeDynamicContributors)
Parameters
Type |
Name |
Description |
bool |
includeParentCultures |
|
bool |
includeBaseLocalizers |
|
bool |
includeDynamicContributors |
|
Returns
GetAllStringsAsync(string, bool, bool, bool)
Declaration
protected virtual Task<IReadOnlyList<LocalizedString>> GetAllStringsAsync(string cultureName, bool includeParentCultures = true, bool includeBaseLocalizers = true, bool includeDynamicContributors = true)
Parameters
Type |
Name |
Description |
string |
cultureName |
|
bool |
includeParentCultures |
|
bool |
includeBaseLocalizers |
|
bool |
includeDynamicContributors |
|
Returns
GetLocalizedString(string)
Declaration
protected virtual LocalizedString GetLocalizedString(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetLocalizedString(string, string)
Declaration
protected virtual LocalizedString GetLocalizedString(string name, string cultureName)
Parameters
Returns
Declaration
protected virtual LocalizedString GetLocalizedStringFormatted(string name, params object[] arguments)
Parameters
Returns
Declaration
protected virtual LocalizedString GetLocalizedStringFormatted(string name, string cultureName, params object[] arguments)
Parameters
Returns
GetLocalizedStringOrNull(string, string, bool)
Declaration
protected virtual LocalizedString? GetLocalizedStringOrNull(string name, string cultureName, bool tryDefaults = true)
Parameters
Returns
GetSupportedCulturesAsync()
Declaration
public Task<IEnumerable<string>> GetSupportedCulturesAsync()
Returns
Implements
Extension Methods