Localizes the given expression, handles two types of expressions:
stringkey - Simple localization
=default string|cs-cz=localized string - advanced localization
Namespace: CMS.LocalizationAssembly: CMS.Localization (in CMS.Localization.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- expression
- Type: System String
Expression to localize
- culture (Optional)
- Type: System String
Culture to use for localization
- encode (Optional)
- Type: System Boolean
If true, translations (replacements) are HTML encoded
- getStringMethod (Optional)
- Type: System Func String, String, Boolean, String
Method to get the resource string for localization
- useDefaultCulture (Optional)
- Type: System Boolean
If true the default culture translation is used if translation in chosen culture doesn't exist
Return Value
Type: StringSee Also