EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Localization.Translation Class Reference

A Translation contains a string which is a translation of text into a specific language, as well as other secondary information about that translation. More...

Inherits IComparable< Translation >.

Public Member Functions

 Translation ()
 Creates a new Translation.
 
 Translation (int id, string languageCode)
 Creates a new Translation with the specified ID and ISO-639 language code.
 
 Translation (int id, string languageCode, string text)
 Creates a new Translation with the specified ID, language code, and text.
 
 Translation (string languageCode)
 Creates a new Translation with the specified ISO-639 language code.
 
int CompareTo (Translation other)
 Compares the Translation to another Translation.
 

Public Attributes

int id
 The ID of the translation. This ID should be the same as the ID for the equivalent translation of other languages in the same library.
 
string language
 The ISO-639 language code of the translation.
 
string text
 The text of the translation.
 

Detailed Description

A Translation contains a string which is a translation of text into a specific language, as well as other secondary information about that translation.

Constructor & Destructor Documentation

◆ Translation() [1/4]

EasyTalk.Localization.Translation.Translation ( )

Creates a new Translation.

◆ Translation() [2/4]

EasyTalk.Localization.Translation.Translation ( int id,
string languageCode )

Creates a new Translation with the specified ID and ISO-639 language code.

Parameters
idThe ID of the Translation.
languageCodeThe ISO-639 language code to use.

◆ Translation() [3/4]

EasyTalk.Localization.Translation.Translation ( int id,
string languageCode,
string text )

Creates a new Translation with the specified ID, language code, and text.

Parameters
idThe ID of the Translation.
languageCodeThe ISO-639 language code to use.
textThe text of the translation.

◆ Translation() [4/4]

EasyTalk.Localization.Translation.Translation ( string languageCode)

Creates a new Translation with the specified ISO-639 language code.

Parameters
languageCodeThe ISO-639 language code to use.

Member Function Documentation

◆ CompareTo()

int EasyTalk.Localization.Translation.CompareTo ( Translation other)

Compares the Translation to another Translation.

Parameters
otherThe other Translation to compare to.
Returns
The comparison value.

Member Data Documentation

◆ id

int EasyTalk.Localization.Translation.id

The ID of the translation. This ID should be the same as the ID for the equivalent translation of other languages in the same library.

◆ language

string EasyTalk.Localization.Translation.language

The ISO-639 language code of the translation.

◆ text

string EasyTalk.Localization.Translation.text

The text of the translation.