LocalizationHelper Class |
Namespace: CMS.Localization
public class LocalizationHelper : AbstractHelper<LocalizationHelper>
The LocalizationHelper type exposes the following members.
Name | Description | |
---|---|---|
LocalizationHelper |
Name | Description | |
---|---|---|
CultureSeparator |
Gets or sets Culture separator.
| |
DefaultManager |
Returns default file resource manager.
| |
DefaultManagerInternal |
Returns default file resource manager.
| |
DefaultPathPrefix | 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. | |
DefaultResourceFiles |
List of the default resource files.
| |
RegExResourceName |
Resource name regular expression.
| |
StringSeparator |
Gets or sets String separator.
| |
UseSQLResourceManagerAsPrimary |
If true, SQL Resource manager if used as primary source to retrieve the strings.
|
Name | Description | |
---|---|---|
Clear |
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.
| |
CreateFileManager |
Creates a new instance of file manager.
| |
GetCMSResourceFilePath |
Gets the path to the resource file.
| |
GetFileManager |
Returns the file resource manager for given culture.
| |
GetFileManagerInternal |
Returns the file resource manager for given culture.
| |
GetFileStringInternal |
Returns specified string from the resource files.
| |
GetFolderResourcesFilePaths |
Returns an enumerable collection of the names of resource files in the specified folder.
| |
GetResourceFilePaths |
Returns the names of resource files (including their paths) for the specified culture.
| |
GetResourceName |
Trim starting and ending '$' chars, if both exists only. Returns trimmed string.
| |
GetStringInternal |
Returns specified string.
| |
GetUniqueResStringKey |
Returns unique resource string key from given plain text.
| |
ResourceFileExistsForCulture |
Returns true if resource file exists for given culture.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.) |