Translate the given string to the current language, in a script-safe format.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public string TranslateForScript(
	string key,
	string language
)

Parameters

key
Type: System..::.String
A string to translate
language
Type: System..::.String

Return Value

The translated string.

Remarks

Translate(String, String) for more information on the format of the string to translate. For more information on how the translated text is made script-safe, see ToScriptSafeString(String).

See Also