Hi,
I am wanting to localize my app for Chinese content (wife is Chinese so I may as well).
I have the technical side of things working, however I have a couple of questions regarding the specifics.
1. What do I put in for CFBundleLocalizations? I am guessing I use “zh-Hans” for simplified Chinese? The corona documentation links to this and it only lists ‘zh’. However I did some digging and found this which links to language IDs under CFBundleDevelopmentRegion, would this be the same? Here is lists “zh-Hans”.
- I have been trying to figure out how to see what language the users device is in, I came across a few different posts that show code similar to this
[lua]
if(isAndroid) then
language = system.getPreference( “locale”, “language” )
else
language = system.getPreference( “ui”, “language” )
end
[/lua]
However, as you can see below, these return completely different results and ““locale”, “language”” does specify whether it is simplified or traditional Chinese? Would I be better of using “ui” for both Android and iOS? Or is there some other option? Cheers
– ipad (system.getPreference( “locale”, “language”):lower() = zh
– ipad system.getPreference( “ui”, “language” ):lower() = zh-hans-au
– Android system.getPreference( “locale”, “language”):lower() = zh
– Android system.getPreference( “ui”, “language” ):lower()) = 中文
Thanks,
Craig