ResourceStringInfoProviderGetString Method (String, String, String, Boolean) |
Returns string by specified key and specified cultureCode.
Namespace: CMS.LocalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 12.0.0
Syntax public static string GetString(
string key,
string cultureCode,
string defaultValue,
bool useDefaultCulture = true
)
Parameters
- key
- Type: SystemString
Resource string key - cultureCode
- Type: SystemString
Resource string UICulture code - defaultValue
- Type: SystemString
Default value in case string was not found - useDefaultCulture (Optional)
- Type: SystemBoolean
If true the default culture translation is used if translation in chosen culture doesn't exist
Return Value
Type:
StringSee Also