DgsGetTranslationName

From Multi Theft Auto: Wiki

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

Syntax

string 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

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Selector

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

QRCode

Remote Image

Rounded Rectangle