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.
| |
GetAPIString(String, String, Boolean) | Obsolete.
Returns specified string for the API usage (the default value is used when string is not found).
| |
GetAPIString(String, String, String, Boolean) | Obsolete.
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) | Obsolete.
Returns specified string from the resources.
| |
GetFileString(String, String, String, Boolean) | Obsolete.
Returns specified string from the resource files.
| |
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.
| |
GetString(String, String, Boolean) | Obsolete.
Returns specified string.
| |
GetString(String, String, String, Boolean) | Obsolete.
Gets the string using the given string keys. Returns the first available item found.
| |
GetString(String, String, String, Boolean, Boolean) | Obsolete.
Returns specified string.
| |
GetStringFormat | Obsolete.
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.
| |
LocalizeExpression | Obsolete.
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.) |