Posted 19 February 2014 - 05:02 AM
Hey,
So i'm trying to do a simple OS system for me and some friends, but the problem is. Not all of us are english speaking,
So I wanted to add a language function to it. But I went into a problem. Dynamic API calling. I know that when you use os.loadAPI it returns true on success and false on error, and that the API is loaded to the file name. But, what if the file name is stored in a variable? Ex: The language file name is da_DK which is stored in the variable languageFile. if I then do
os.loadAPI(languageFile) then I would have to do da_DK.get() to get the language table. but if the languageFile is en_US then I would have to do en_US.get(). How would I get around this?
- Roe
So i'm trying to do a simple OS system for me and some friends, but the problem is. Not all of us are english speaking,
So I wanted to add a language function to it. But I went into a problem. Dynamic API calling. I know that when you use os.loadAPI it returns true on success and false on error, and that the API is loaded to the file name. But, what if the file name is stored in a variable? Ex: The language file name is da_DK which is stored in the variable languageFile. if I then do
os.loadAPI(languageFile) then I would have to do da_DK.get() to get the language table. but if the languageFile is en_US then I would have to do en_US.get(). How would I get around this?
- Roe