So in my game I convert all the text to the proper language.
Here is how I did it.
if system.getInfo( "platformName" ) ~= "Android" then \_theLang = system.getPreference( "ui", "language" ) else \_theLang = system.getPreference( "locale", "language" ) end if \_theLang == "en" then local language = {} language.name = "english" \_dictionary:addLanguageFromFile( "english.language" ) \_theFont = "QuadratSerial" -- \_theFont "QuadratXSerial" print ("setting to English") end
So out of the blue (so it seemed) All of my Corona files, even the old back ups, stopped working! It would break on the translation part and I was totally miffed as to why!
But then I realized it must have happened when I installed OSX Sierra. Then I printed out what _theLang actually was and it was “en-US”, sure enough the Sierra build was what broke it with the specific ‘-US’ part.
When I changed “en” to “en-US” it worked again. This is making me wonder, if that changed, am I going to have to detect “en-CA”, “en-UK”, etc ???
Is there an updated language acronym listing I can check somewhere for english? Let alone for the other languages?
thanks