Class ContentLanguageInformationResolver
Inheritance
System.Object
ContentLanguageInformationResolver
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Cms.Shell.UI.Rest.Internal
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IContentLanguageInformationResolver))]
public class ContentLanguageInformationResolver : IContentLanguageInformationResolver
Constructors
ContentLanguageInformationResolver(IContentLanguageSettingsHandler, ILanguageBranchRepository, IContentProviderManager, IContentLoader, LanguageResolver, ServiceAccessor<SiteDefinition>, LocalizationService)
Declaration
public ContentLanguageInformationResolver(IContentLanguageSettingsHandler contentLanguageSettingsHandler, ILanguageBranchRepository languageBranchRepository, IContentProviderManager contentProviderManager, IContentLoader contentLoader, LanguageResolver languageResolver, ServiceAccessor<SiteDefinition> currentSiteDefinition, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
IContentLanguageSettingsHandler | contentLanguageSettingsHandler | |
ILanguageBranchRepository | languageBranchRepository | |
IContentProviderManager | contentProviderManager | |
IContentLoader | contentLoader | |
LanguageResolver | languageResolver | |
ServiceAccessor<SiteDefinition> | currentSiteDefinition | |
LocalizationService | localizationService |
Fields
LocalizationService
Declaration
protected readonly LocalizationService LocalizationService
Field Value
Type | Description |
---|---|
LocalizationService |
Methods
Resolve(IContent, String)
Declaration
public virtual ContentLanguageInformation Resolve(IContent content, string preferredLanguage)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | |
System.String | preferredLanguage |
Returns
Type | Description |
---|---|
ContentLanguageInformation |
SetWarning(ContentLanguageInformation, IContent)
Declaration
protected virtual void SetWarning(ContentLanguageInformation languageInformation, IContent content)
Parameters
Type | Name | Description |
---|---|---|
ContentLanguageInformation | languageInformation | |
IContent | content |
Translate(CultureInfo)
Declaration
protected string Translate(CultureInfo cultureInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | cultureInfo |
Returns
Type | Description |
---|---|
System.String |
Translate(String)
Declaration
protected string Translate(string cultureName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cultureName |
Returns
Type | Description |
---|---|
System.String |