Localizes the given expression, handles two types of expressions:
stringkey - Simple localization
=default string|cs-cz=localized string - advanced localization
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)
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:
See Also