LocalizationHelper Class |
Namespace: CMS.Localization
public class LocalizationHelper : AbstractHelper<LocalizationHelper>
The LocalizationHelper type exposes the following members.
Name | Description | |
---|---|---|
LocalizationHelper |
Name | Description | |
---|---|---|
MarkLocalizedTexts |
If true, the localized texts are marked with special character to be easily recognizable
|
Name | Description | |
---|---|---|
DefaultManager |
Returns default file resource manager.
| |
DefaultManagerInternal |
Returns default file resource manager.
| |
DefaultResourceFiles |
List of the default resource files.
| |
RegExResourceName |
Resource name regular expression.
| |
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.
| |
GetAPIString(String, String, Boolean) |
Returns specified string for the API usage (the default value is used when string is not found).
| |
GetAPIString(String, String, String, Boolean) |
Returns specified string.
| |
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.
| |
GetFileString(String, String, Boolean) |
Returns specified string from the resources.
| |
GetFileString(String, String, String, Boolean) |
Returns specified string from the resource files.
| |
GetFileStringInternal |
Returns specified string from the resource files.
| |
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.
| |
GetString(String, Boolean) |
Returns specified string.
| |
GetString(String, String, Boolean) |
Returns specified string.
| |
GetString(String, String, String, Boolean) |
Gets the string using the given string keys. Returns the first available item found.
| |
GetString(String, String, String, Boolean, Boolean) |
Returns specified string.
| |
GetStringFormat |
Gets the given string and formats it with the standard String.Format method
| |
GetStringInternal |
Returns specified string.
| |
GetUniqueResStringKey |
Returns unique resource string key from given plain text.
| |
IsUniqueResStringKey | Obsolete.
Check if resource key is unique.
| |
LocalizeExpression |
Localizes the given expression, handles two types of expressions:
stringkey - Simple localization
=default string|cs-cz=localized string - advanced localization
| |
ResourceFileExistsForCulture |
Returns true if resource file exists for given culture.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.) |