ResHelper Class |
Namespace: CMS.Helpers
public static class ResHelper
The ResHelper type exposes the following members.
Name | Description | |
---|---|---|
Colon |
Colon symbol.
| |
Comma |
Comma symbol.
| |
CultureSeparator | Obsolete.
Culture separator.
| |
Dash |
Dash symbol.
| |
Dot |
Dot symbol.
| |
RegExLocalize |
Localization regular expression.
| |
RequiredMark |
RequiredMark symbol.
| |
Semicolon |
Semicolon symbol.
| |
Slash |
Slash symbol.
| |
StringSeparator | Obsolete.
String separator.
|
Name | Description | |
---|---|---|
ContainsLocalizationMacro |
Returns true, if the given text contains a localization macro
| |
GetAPIString(String, String) |
Returns specified string for the API usage (the default value is used when string is not found).
| |
GetAPIString(String, String, String) |
Returns specified string.
| |
GetFileString(String, String, Boolean) |
Returns specified string.
| |
GetFileString(String, String, String, Boolean) |
Returns specified string from the resource files.
| |
GetString |
Returns specified string.
| |
GetStringFormat |
Gets the given string and formats it with the standard String.Format method
| |
LocalizeExpression |
Localizes the given expression, handles two types of expressions:
stringkey - Simple localization
=default string|cs-cz=localized string - advanced localization
| |
LocalizeFileString |
Replaces "{$stringname$}" expressions in given text with localized strings.
| |
LocalizeString |
Replaces "{$stringname$}" expressions in given text with localized strings using given culture.
| |
TranslationFoundForLocalizedString |
Detects whether translation can be found for the given localized string
|