Click or drag to resize
CultureHelper Class
Provides the global methods for culture helping operations.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperCultureHelper
        CMS.HelpersCultureHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public class CultureHelper : AbstractHelper<CultureHelper>

The CultureHelper type exposes the following members.

Constructors
  NameDescription
Public methodCultureHelper
Top
Properties
  NameDescription
Public propertyStatic memberDefaultUICulture
Default culture (default culture of user interface).
Public propertyStatic memberDefaultUICultureCode
Returns default UI culture code.
Protected propertyDefaultUICultureCodeInternal
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.
Top
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 methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
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.
Top
See Also