Hi, I set the iPhone simulator language to spanish and italian (I eventually verified the change), but, when I test my app, the following code always detects english/american language:
Ti.API.error("locale: " + Ti.Locale.currentLocale); Ti.API.error("country: " + Ti.Locale.currentCountry); Ti.API.error("language: " + Ti.Locale.currentLanguage); Ti.API.error("locale: " + Ti.Locale.getCurrentLocale()); Ti.API.error("country: " + Ti.Locale.getCurrentCountry()); Ti.API.error("language: " + Ti.Locale.getCurrentLanguage());
[ERROR] : locale: en-US [ERROR] : country: US [ERROR] : language: en [ERROR] : locale: en-US [ERROR] : country: US [ERROR] : language: enMy project is multilanguage and in multiple places I use L("string") localization system. Anyway, if this simple example doesn't work, I don't know how could work the rest of my project.
Other infos here:
Operating System Name = Mac OS X Version = 10.9.5 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 0.10.31 npm Version = 1.4.23 Titanium CLI CLI Version = 3.4.2 Titanium SDK SDK Version = 3.5.1.GA SDK Path = /Users/recoova/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA Target Platform = iphoneAny help is appreciated.