I18N
Addon

Addon

Addon objects store translations for a single addon. Retrieve one with i18n.RegisterAddon or i18n.GetAddon.

Constructors

table Addon.New( string, string, string )

Creates a new addon container.

Instance Methods

string Addon:GetName()

Gets the addon name.

string Addon:GetAuthor()

Gets the addon author.

Addon:SetAuthor( string )

Sets the addon author.

string Addon:GetFallbackLanguage()

Gets the fallback language code.

Addon:SetFallbackLanguage( string )

Sets the fallback language code.

table Addon:GetTranslations()

Gets the translations for this addon.

string Addon:GetString( string, table )

Gets a translated string by phrase identifier.

table Addon:AddTranslation( string, string )

Adds a translation to the addon.