With Opticon around the corner, we'll be canceling this month's (Sept) Happy Hour.

Class UpdateCurrentLanguage

Default implementation of IUpdateCurrentLanguage

Inheritance
System.Object
UpdateCurrentLanguage
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.Globalization
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(typeof(IUpdateCurrentLanguage), Lifecycle = ServiceInstanceScope.Singleton)]
public class UpdateCurrentLanguage : IUpdateCurrentLanguage
Remarks

Will set ContentLanguage, SystemLanguage and UserInterfaceLanguage

Constructors

UpdateCurrentLanguage(IContentLanguageSettingsHandler)

Creates a new instance of UpdateCurrentLanguage.

Declaration
public UpdateCurrentLanguage(IContentLanguageSettingsHandler contentLanguageSettingsHandler)
Parameters
Type Name Description
IContentLanguageSettingsHandler contentLanguageSettingsHandler

Methods

UpdateLanguage(String)

Updates the current language settings.

Declaration
public void UpdateLanguage(string languageId)
Parameters
Type Name Description
System.String languageId

The language id.

UpdateReplacementLanguage(IContent, String)

Updates current language settings if a replacement language is used.

Declaration
public void UpdateReplacementLanguage(IContent currentContent, string requestedLanguage)
Parameters
Type Name Description
IContent currentContent

The content that we route to.

System.String requestedLanguage

The requested language selection.

Implements

Extension Methods