Language Translation.
    public class Translation : Resource

Translations are resources that can be loaded/unloaded on demand. They map a string to another string.

Inheritance Chain

Derived Classes


    public Translation()


    public string Locale { get; set; }

The locale of the translation.

    public string[] Messages { get; set; }


    public void AddMessage(string srcMessage, string xlatedMessage)

Adds a message if nonexistent, followed by its translation.

    public void EraseMessage(string srcMessage)

Erases a message.

    public string GetLocale()

Getter for Locale

    public string GetMessage(string srcMessage)

Returns a message’s translation.

    public int GetMessageCount()

Returns the number of existing messages.

    public string[] GetMessageList()

Returns all the messages (keys).

    public void SetLocale(string locale)

Setter for Locale