Click or drag to resize
ResourceStringInfoProviderGetString Method (String, String, String, Boolean)
Returns string by specified key and specified cultureCode.

Namespace: CMS.Localization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 12.0.0
Syntax
C#
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: String
See Also