Class SystemLanguage
Implementation of the LanguageSelection class.
Inherited Members
Namespace: EPiServer.Globalization
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class SystemLanguage : LanguageSelection
Constructors
SystemLanguage()
Initializes a new instance of the SystemLanguage class.
Declaration
protected SystemLanguage()
Remarks
The constructor is protected to prevent this class from being instantiated directly, but it should still be possible to inherit from this class. Access should be through the Instance property.
Properties
FinalFallbackCulture
Read-only fallback culture System.Globalization.CultureInfo type property.
Declaration
public override CultureInfo FinalFallbackCulture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
Overrides
Instance
Gets or sets the instance of LanguageSelection to use.
Declaration
public static SystemLanguage Instance { get; set; }
Property Value
Type | Description |
---|---|
SystemLanguage | The instance. |
Remarks
Assigning to this property allows you to completely replace how the culture/user interface language is determined.
Methods
DetermineCulture(LanguagePreferenceList)
Sets preferred culture based on priority language
Declaration
public override CultureInfo DetermineCulture(LanguagePreferenceList languagePreference)
Parameters
Type | Name | Description |
---|---|---|
LanguagePreferenceList | languagePreference | Language code |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | System.Globalization.CultureInfo object. |
Overrides
LanguagePreferenceList(String)
Creates a new LanguagePreferenceList(String) and adds a new language to it.
Declaration
public override LanguagePreferenceList LanguagePreferenceList(string priorityLanguage)
Parameters
Type | Name | Description |
---|---|---|
System.String | priorityLanguage | Language code |
Returns
Type | Description |
---|---|
LanguagePreferenceList | LanguagePreferenceList(String) object. |
Overrides
SetCulture(String)
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. |