Hi, I have a script that I made, (won't plug) and I was wondering how I am supposed to add the "Simple table that people can edit according to their server's language" to add language support to my add-on, thanks.
Declare a shared table of strings in some configuration file for your addon, then access the keys for it inside of your addon's code. Ex.
MyAddonTable.Language = {
some_key = "blah",
foobar = "some phrase",
}
-- In your code..
surface.DrawText(MyAddonTable.Language.some_key)
Yeah, but how does it translate?
Sorry, you need to Log In to post a reply to this thread.