CultureHelper Class |
Namespace: CMS.Helpers
public class CultureHelper : AbstractHelper<CultureHelper>
The CultureHelper type exposes the following members.
Name | Description | |
---|---|---|
CultureHelper |
Name | Description | |
---|---|---|
DefaultUICulture |
Default culture (default culture of user interface).
| |
DefaultUICultureCode |
Returns default UI culture code.
| |
DefaultUICultureCodeInternal |
Returns default UI culture code.
| |
EnglishCulture |
English culture (default culture for storing data).
| |
PreferredUICultureCode |
Returns preferred UI culture code.
| |
PreferredUICultureInfo |
Preferred UI culture info object.
|
Name | Description | |
---|---|---|
GetCultureInfo |
Gets the culture info for specified culture.
If culture code is invalid, then english culture is returned.
| |
GetDefaultCultureCode |
Returns the default culture code.
| |
GetFacebookCulture | Obsolete.
Converts culture code to Facebook culture code.
| |
GetOriginalPreferredCulture |
Returns the user original preferred culture.
| |
GetPreferredCulture |
Returns the user preferred culture (reflects the virtual context).
| |
GetPreferredUICultureCode |
Returns the user preferred UI Culture code.
| |
GetShortCultureCode |
Returns the short culture part, just the main culture identifier ("en-us" => "en").
| |
IsCultureRTL |
Returns true if specified culture is right to left culture.
| |
IsNeutralCulture |
Checks if culture code is neutral culture code.
| |
IsPreferredCultureRTL |
Returns true is current content culture is right to left culture.
| |
IsUICultureRTL |
Returns true if current UI culture is right to left culture.
| |
IsValidCultureInfoName |
Check if culture code is valid DotNet culture code
(All cultures that ship with the .NET Framework, including neutral and specific
cultures, cultures installed in the Windows operating system, and
custom cultures created by the user).
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.) | |
SetPreferredCulture(String) |
Sets the user preferred culture.
| |
SetPreferredCulture(String, Boolean, Boolean) |
Sets the user preferred culture.
| |
SetPreferredUICultureCode |
Sets the user preferred UI Culture code.
|