| TemplateBaseTTranslate Method (String, String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
Namespace:
Dynamicweb.Rendering
Assembly:
Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax public string Translate(
string text,
string defaultValue,
string cultureName
)
Public Function Translate (
text As String,
defaultValue As String,
cultureName As String
) As String
Parameters
- text
- Type: SystemString
The text to translate - defaultValue
- Type: SystemString
The default translation - cultureName
- Type: SystemString
Name of the culture, i.e. 'en-gb'.
Return Value
Type:
StringThe translated text if a translation exists. Otherwise the default translation.
See Also