Rockyz Posted August 19, 2015 Share Posted August 19, 2015 Hey Guys I Want To Know How To Do Like This local Languge = "English" -- You Can Change To Arabic Too Please If You Know Help Me Link to comment
Walid Posted August 19, 2015 Share Posted August 19, 2015 Explain your problem better Link to comment
GTX Posted August 19, 2015 Share Posted August 19, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now