Class ContentLanguageImplementation
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Implementation of the LanguageSelection class.
Inherited Members
Namespace: EPiServer.Globalization.Internal
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(ServiceType = typeof(ContentLanguage), Lifecycle = ServiceInstanceScope.Singleton)]
public class ContentLanguageImplementation : ContentLanguage
Constructors
ContentLanguageImplementation(ILanguageBranchRepository, HostLanguageResolver, ServiceAccessor<HttpRequestBase>, ContextCache)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the ContentLanguage class.
Declaration
public ContentLanguageImplementation(ILanguageBranchRepository languageBranchRepository, HostLanguageResolver hostLanguageResolver, ServiceAccessor<HttpRequestBase> currentHttpRequest, ContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
ILanguageBranchRepository | languageBranchRepository | The language branch repository used by this instance. |
HostLanguageResolver | hostLanguageResolver | The host language resolver used by this instance. |
ServiceAccessor<System.Web.HttpRequestBase> | currentHttpRequest | An accessor to the current HTTP request instance. |
ContextCache | contextCache | The context cache |
Properties
FinalFallbackCulture
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the final fallback culture.
Declaration
public override CultureInfo FinalFallbackCulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The final fallback culture. |
Overrides
Remarks
When all other culture/language resolution mechanisms fail, this is the final resort to get a valid culture for ContentLanguage.
Methods
DetermineCulture(LanguagePreferenceList)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines the preferred content language for the current request.
Declaration
public override CultureInfo DetermineCulture(LanguagePreferenceList preferenceList)
Parameters
Type | Name | Description |
---|---|---|
LanguagePreferenceList | preferenceList |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | A string with the language code for the CultureInfo set as PreferredCulture. |
Overrides
LanguagePreferenceList(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get all preferred languages a list of language codes.
Declaration
public override LanguagePreferenceList LanguagePreferenceList(string priorityLanguage)
Parameters
Type | Name | Description |
---|---|---|
System.String | priorityLanguage |
Returns
Type | Description |
---|---|
LanguagePreferenceList | An IList<string> with language codes in priority order. |
Overrides
SetCulture(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sets preferred culture based on priority language
Declaration
public override CultureInfo SetCulture(string priorityLanguage)
Parameters
Type | Name | Description |
---|---|---|
System.String | priorityLanguage |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | System.Globalization.CultureInfo object. |