MagicCMS Documentation

MagicTransDictionary Members

The MagicTransDictionary type exposes the following members.

Constructors


  Name Description
Public method MagicTransDictionary()()()()
Initializes a new empty instance of the MagicTransDictionary class.
Public method MagicTransDictionary(Int32)
Initializes a new instance of the MagicTransDictionary class fletching it from MagicCMS database.
Public method MagicTransDictionary(String, String)
Initializes a new instance of the MagicTransDictionary class.

Methods


  Name Description
Public method Save
This method inserts the term translation in Dictionary table of MagicCMS database. If translation exists for this languages it updates translation.
Public method Static member Translate(String, String)
Get the translation of the specified word or sentence in language langId if it exists, otherwise return the untranslated sentence.
Public method Static member Translate(String)
Get the translation of the specified word or sentence in Current Language if it exists, otherwise return the untranslated sentence.

Properties


  Name Description
Public property LangId
Gets or sets the language identifier of the translation.
Public property Pk
Gets or sets the pk (Unique ID of .
Public property Source
Gets or sets the source word or sentence.
Public property Translation
Gets or sets the translation of the Source in the language LangId.