Project: titanium
Issue TIMOB-23301: Windows: Ti.API.log doesn't handle single argument
Hello, I have found that {{Ti.Locale.setLanguage}} works on Android but not on Windows Phone. *Steps:* 1. Create a default classic project. 2. Replace app.js code with following. {code} var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); win1.open(); var lan=Ti.Locale.getCurrentLanguage(); Ti.API.log("Initial Language: "+lan); Ti.Locale.setLanguage("fr"); lan=Ti.Locale.getCurrentLanguage(); Ti.API.log("Language Changed To: "+lan); {code} 3. Build and run the app. 4.On Android following console log is produced. {code} [INFO] : Initial Language: en [INFO] : Language Changed To: fr {code} But on Windows Phone the app fails to run and following error log is produced. {code} [ERROR] : Application Error: { [ERROR] : "line": 2, [ERROR] : "column": 10, [ERROR] : "message": "Error while require(/app) invalid vector subscript", [ERROR] : "native_stack": [ [ERROR] : "JSExportClass::CallNamedFunction" [ERROR] : ] [ERROR] : } {code} Thanks *Environment*: *Device info:* Nexus7 (android 6.0.1) , Microsoft Lumia 640 (Windows Phone 8.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.2.GA and 5.2.1.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.5.0
Story points: 3