Class UpdateCurrentLanguage
Default implementation of IUpdateCurrentLanguage
Inheritance
System.Object
UpdateCurrentLanguage
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.Globalization
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class UpdateCurrentLanguage : IUpdateCurrentLanguage
Remarks
Will set ContentLanguage, SystemLanguage and UserInterfaceLanguage
Constructors
UpdateCurrentLanguage()
Declaration
public UpdateCurrentLanguage()
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, ILanguageSelectionSource)
Updates current language settings if a replacement language is used.
Declaration
public void UpdateReplacementLanguage(IContent currentContent, ILanguageSelectionSource languageSource)
Parameters
Type | Name | Description |
---|---|---|
IContent | currentContent | The content that we route to. |
ILanguageSelectionSource | languageSource | The source for language selection. |
Remarks
Replacement language is only handled by PageData for the core CMS system, but there is nothing that prevents