Interface ILanguageSelector
Interface to support language selection on multilingual pages, see class LanguageSelector for the default prefered implementation
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface ILanguageSelector
Methods
LoadLanguage(LanguageSelectorContext)
Selects language branch based on a page link only, used for example when loading versions or creating new pages
Declaration
void LoadLanguage(LanguageSelectorContext args)
Parameters
Type | Name | Description |
---|---|---|
LanguageSelectorContext | args | Argument containg information about the actual page and language that should be loaded |
SelectPageLanguage(LanguageSelectorContext)
Selects which language branch of a page that should be loaded, used for examples in listings
Declaration
void SelectPageLanguage(LanguageSelectorContext args)
Parameters
Type | Name | Description |
---|---|---|
LanguageSelectorContext | args | Argument containg information about the actual page and language that should be loaded |
SetInitializedLanguageBranch(LanguageSelectorContext)
The implemenentation must not call into GetPage. It should set SelectedLanguage property with the language branch that selector was initialized with.
Declaration
void SetInitializedLanguageBranch(LanguageSelectorContext args)
Parameters
Type | Name | Description |
---|---|---|
LanguageSelectorContext | args |