Click or drag to resize

TemplateBaseTTranslate Method (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
)

Parameters

text
Type: SystemString
The text to translate
defaultValue
Type: SystemString
The default translation

Return Value

Type: String
The translated text if a translation exists. Otherwise the default translation.
See Also