November Happy Hour will be moved to Thursday December 5th.

Class UpdateCurrentLanguage

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IUpdateCurrentLanguage), Lifecycle = ServiceInstanceScope.Singleton)]
public class UpdateCurrentLanguage : IUpdateCurrentLanguage
Remarks

Will set ContentLanguage, SystemLanguage and UserInterfaceLanguage

Constructors

UpdateCurrentLanguage(IContentLanguageSettingsHandler)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a new instance of UpdateCurrentLanguage.

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

Methods

UpdateLanguage(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Updates the current language settings.

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

The language id.

UpdateReplacementLanguage(IContent, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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