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: 12.0.0
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 memberGetAPIString(String, String, Boolean) Obsolete.
Returns specified string for the API usage (the default value is used when string is not found).
Public methodStatic memberGetAPIString(String, String, String, Boolean) Obsolete.
Returns specified string.
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.
Public methodStatic memberGetFileString(String, String, Boolean) Obsolete.
Returns specified string from the resources.
Public methodStatic memberGetFileString(String, String, String, Boolean) Obsolete.
Returns specified string from the resource files.
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.
Public methodStatic memberGetString(String, String, Boolean) Obsolete.
Returns specified string.
Public methodStatic memberGetString(String, String, String, Boolean) Obsolete.
Gets the string using the given string keys. Returns the first available item found.
Public methodStatic memberGetString(String, String, String, Boolean, Boolean) Obsolete.
Returns specified string.
Public methodStatic memberGetStringFormat Obsolete.
Gets the given string and formats it with the standard String.Format method
Protected methodGetStringInternal
Returns specified string.
Public methodStatic memberGetUniqueResStringKey
Returns unique resource string key from given plain text.
Public methodStatic memberLocalizeExpression Obsolete.
Localizes the given expression, handles two types of expressions: stringkey - Simple localization =default string|cs-cz=localized string - advanced localization
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