CultureHelper MembersKentico 8.0 API Reference
The CultureHelper type exposes the following members.
Methods

  NameDescription
Public methodStatic memberGetCultureInfo
Gets the culture info for specified culture. If culture code is invalid, then english culture is returned.
Public methodStatic memberGetDefaultCultureCode
Returns the default culture code.
Public methodStatic memberGetFacebookCulture
Converts culture code to Facebook culture code.
Public methodStatic memberGetOriginalPreferredCulture
Returns the user original preferred culture.
Public methodStatic memberGetPreferredCulture
Returns the user preferred culture (reflects the virtual context).
Public methodStatic memberGetPreferredUICultureCode
Returns the user preferred UI Culture code.
Public methodStatic memberGetShortCultureCode
Returns the short culture part, just the main culture identifier ("en-us" => "en").
Public methodStatic memberIsCultureRTL
Returns true if specified culture is right to left culture.
Public methodStatic memberIsNeutralCulture
Checks if culture code is neutral culture code.
Public methodStatic memberIsPreferredCultureRTL
Returns true is current content culture is right to left culture.
Public methodStatic memberIsUICultureRTL
Returns true if current UI culture is right to left culture.
Public methodStatic memberIsValidCultureInfoName
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).
Public methodStatic memberSetPreferredCulture(String)
Sets the user preferred culture.
Public methodStatic memberSetPreferredCulture(String, Boolean, Boolean)
Sets the user preferred culture.
Public methodStatic memberSetPreferredUICultureCode
Sets the user preferred UI Culture code.
Back to Top
Properties

  NameDescription
Public propertyStatic memberDefaultUICulture
Default culture (default culture of user interface).
Public propertyStatic memberDefaultUICultureCode
Returns default UI culture code.
Public propertyStatic memberEnglishCulture
English culture (default culture for storing data).
Public propertyStatic memberPreferredUICultureCode
Returns preferred UI culture code.
Public propertyStatic memberPreferredUICultureInfo
Preferred UI culture info object.
Back to Top
See Also