DgsGetTranslationName

From Multi Theft Auto: Wiki

This function gets translation table name that the dgs element use.

Syntax

bool dgsGetTranslationName ( element dgsElement )

Required Arguments

  • dgsElement: The dgs element you want to get from .

Returns

Returns a string if succeed, false/nil otherwise

Example

DGS = exports.dgs
TranslationTable = {
	login = "Login",
	register = "Register",
}
DGS:dgsSetTranslationTable("EN",TranslationTable)
DGS:dgsSetAttachTranslation("EN")
local button = DGS:dgsCreateButton(200,200,200,100,{"login"},false)
DGS:dgsSetAttachTranslation()
local button2 = DGS:dgsCreateButton(300,200,200,100,{"register"},false)
outputChatBox(DGS:dgsGetTranslationName(button)) -- EN
outputChatBox(DGS:dgsGetTranslationName(button2)) -- nil

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D