Jump to content

Help


Rockyz

Recommended Posts

Put your languages in table like:

languages = { 
    ["English"] = { 
        ["label1"] = "Welcome." 
    }, 
    ["Slovenian"] = { 
        ["label1"] = "Dobrodošli." 
    } 
} 

Then with getLocalization function you can use something like this:

languages[getLocalization()["name"]]["label1"] -- If your client is English, it would return "Hello.", if Slovenian, "Dobrodošli". 

Or you can get texts however else you want.

languages["English"]["label1"] -- Returns Hello. 

Note that this is just an example.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...