Click or drag to resize
LocalizationHelper Class
Resource manager class that retrieves localized strings from resources.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperLocalizationHelper
        CMS.LocalizationLocalizationHelper

Namespace: CMS.Localization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax
C#
public class LocalizationHelper : AbstractHelper<LocalizationHelper>

The LocalizationHelper type exposes the following members.

Constructors
  NameDescription
Public methodLocalizationHelper
Top
Properties
  NameDescription
Public propertyStatic memberCultureSeparator
Gets or sets Culture separator.
Public propertyStatic memberDefaultManager
Returns default file resource manager.
Protected propertyDefaultManagerInternal
Returns default file resource manager.
Public propertyStatic memberDefaultPathPrefix

Default path prefix to be used when resolving path to CMSResources folder. Gets WebApplicationPhysicalPath unless explicitly set. Existing resource file managers must be cleared upon set by calling Clear for the change to take effect on them.

This API supports the framework infrastructure and is not intended to be used directly from your code.

Public propertyStatic memberDefaultResourceFiles
List of the default resource files.
Public propertyStatic memberRegExResourceName
Resource name regular expression.
Public propertyStatic memberStringSeparator
Gets or sets String separator.
Public propertyStatic memberUseSQLResourceManagerAsPrimary
If true, SQL Resource manager if used as primary source to retrieve the strings.
Top
Methods
  NameDescription
Public methodStatic memberClear
Clears the current instances of the file managers which can retrieve data from the resource files. This will ensure reloading the resource strings from the resource files.
Public methodStatic memberCreateFileManager
Creates a new instance of file manager.
Public methodStatic memberGetCMSResourceFilePath
Gets the path to the resource file.
Public methodStatic memberGetFileManager
Returns the file resource manager for given culture.
Protected methodGetFileManagerInternal
Returns the file resource manager for given culture.
Protected methodGetFileStringInternal
Returns specified string from the resource files.
Public methodStatic memberGetFolderResourcesFilePaths
Returns an enumerable collection of the names of resource files in the specified folder.
Public methodStatic memberGetResourceFilePaths
Returns the names of resource files (including their paths) for the specified culture.
Public methodStatic memberGetResourceName
Trim starting and ending '$' chars, if both exists only. Returns trimmed string.
Protected methodGetStringInternal
Returns specified string.
Public methodStatic memberGetUniqueResStringKey
Returns unique resource string key from given plain text.
Public methodStatic memberResourceFileExistsForCulture
Returns true if resource file exists for given culture.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also