FileLocalizationService LocalizeExpression Method Kentico 8.0 API Reference
Localizes the given expression, handles two types of expressions: stringkey - Simple localization =default string|cs-cz=localized string - advanced localization

Namespace: CMS.Localization
Assembly: CMS.Localization (in CMS.Localization.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

expression
Type: OnlineSystem String
Expression to localize
culture (Optional)
Type: OnlineSystem String
Culture to use for localization
encode (Optional)
Type: OnlineSystem Boolean
If true, translations (replacements) are HTML encoded
getStringMethod (Optional)
Type: OnlineSystem Func OnlineString, OnlineString, OnlineBoolean, OnlineString 
Method to get the resource string for localization
useDefaultCulture (Optional)
Type: OnlineSystem Boolean
If true the default culture translation is used if translation in chosen culture doesn't exist

Return Value

Type: OnlineString
See Also