Rockyz Posted August 19, 2015 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
Walid Posted August 19, 2015 Posted August 19, 2015 Explain your problem better Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
GTX Posted August 19, 2015 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. Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
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