MagicCMS Documentation

MagicTransDictionary..::..Translate Method (String, String)

Get the translation of the specified word or sentence in language langId if it exists, otherwise return the untranslated sentence.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static string Translate(
	string sentence,
	string langId
)

Parameters

sentence
Type: String
The sentence.
langId
Type: String
The language Identifier.

Return Value

System.String. Translation