Click or drag to resize
LocalizationServiceLocalizeString Method
Replaces "{$stringname$}" expressions in given text with localized strings using given culture.

Namespace: CMS.Localization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax
C#
public override string LocalizeString(
	string inputText,
	string culture = null,
	bool encode = false,
	bool useDefaultCulture = true
)

Parameters

inputText
Type: SystemString
Input text with localizable expressions
culture (Optional)
Type: SystemString
Culture
encode (Optional)
Type: SystemBoolean
If true, translations (replacements) are HTML encoded
useDefaultCulture (Optional)
Type: SystemBoolean
If true the default culture translation is used if translation in chosen culture doesn't exist

Return Value

Type: String

Implements

ILocalizationServiceLocalizeString(String, String, Boolean, Boolean)
See Also