Click or drag to resize

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
)

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: String
The translated text if a translation exists. Otherwise the default translation.
See Also