I18N
Translation

Translation

Translation objects represent a single language for an addon. Create them with i18n.RegisterTranslation or Addon:AddTranslation.

Constructors

table Translation.New( string, string )

Creates a new translation.

Instance Methods

string Translation:GetLanguage()

Gets the translation language.

string Translation:GetAuthor()

Gets the translation author.

table Translation:GetPhrases()

Gets the phrases for this translation.

string Translation:GetString( string, table )

Gets a translated string by phrase identifier.

table Translation:AddPhrase( string, string, table )

Adds a phrase to the translation.