{ "id": "116958", "key": "AC-1935", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-07-08T19:33:20.000+0000", "created": "2013-07-08T19:27:26.000+0000", "labels": [ "alloy", "i18n", "internationalization", "labels", "tabbedbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When trying to set internationalized labels to a Ti.UI.iOS.TabbedBar like in the following example, Alloy fails to compile.\r\n\r\nThe titles of both labels were set with different approaches (first one with *titleid* property, the other one via tss accessed by its id) \r\n\r\nindex.xml\r\n{code:title=index.xml|borderStyle=solid}\r\n\r\n\t\r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss\r\n{code:title=index.tss|borderStyle=solid}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n},\r\n\"#tab_two\": {\r\n\ttitle: L('tab_two')\r\n}\r\n{code}\r\n\r\n\r\nBoth are producing this error:\r\n{noformat} \r\n[INFO] : ----- MVC GENERATION -----\r\n[INFO] : [index.xml] view processing...\r\n[INFO] : style: \"index.tss\"\r\n[INFO] : view: \"index.xml\"\r\n[ERROR] : /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.BarItemType.js:30\r\n[ERROR] : \t\tlogger.warn(' at index ' + index + ' has no properties');\r\n[ERROR] : \t\t\r\n[ERROR] : ^\r\n[ERROR] : ReferenceError: logger is not defined\r\n[ERROR] : at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.BarItemType.js:30:3)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.BarItemType.js:6:27)\r\n[ERROR] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:48)\r\n[ERROR] : at exports.generateNode.content (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:277:29)\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:272:5)\r\n[ERROR] : at Object.exports.generateNodeExtended (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:175:17)\r\n[ERROR] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:48:15\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:28:4)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:17:27)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ButtonBar.js:14:52)\r\n[ERROR] : at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.iOS.TabbedBar.js:2:38)\r\n[ERROR] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:48)\r\n[ERROR] : at exports.generateNode.content (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:277:29)\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:272:5)\r\n[ERROR] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:447:28\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at parseAlloyComponent (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:439:5)\r\n[ERROR] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:202:5\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:194:5\r\n[ERROR] : at Array.forEach (native)\r\n[ERROR] : at Function.T.each.T.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:5:625)\r\n[ERROR] : at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:192:4)\r\n[ERROR] : at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:86:46)\r\n[ERROR] : at Module._compile (module.js:449:26)\r\n[ERROR] : at Object.Module._extensions..js (module.js:467:10)\r\n[ERROR] : at Module.load (module.js:356:32)\r\n[ERROR] : at Function.Module._load (module.js:312:12)\r\n[ERROR] : at Module.require (module.js:362:17)\r\n[ERROR] : at require (module.js:378:17)\r\n[ERROR] : at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\n[ERROR] : at Module._compile (module.js:449:26)\r\n[ERROR] : at Object.Module._extensions..js (module.js:467:10)\r\n[ERROR] : at Module.load (module.js:356:32)\r\n[ERROR] : at Function.Module._load (module.js:312:12)\r\n[ERROR] : at Module.runMain (module.js:492:10)\r\n[ERROR] : at process.startup.processNextTick.process._tickCallback (node.js:245:9)\r\n[ERROR] : Alloy compiler failed\r\n{noformat} ", "attachment": [], "flagged": false, "summary": "Alloy doesn't compile internationalized labels of Ti.UI.iOS.TabbedBar", "creator": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Alloy 1.1.2\r\nTitanium SDK 3.1.1.GA\r\nTitanium Studio, build: 3.1.0.201304151600", "comment": { "comments": [ { "id": "260991", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "duplicate of ALOY-734", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-08T19:33:20.000+0000", "updated": "2013-07-08T19:33:20.000+0000" }, { "id": "281050", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:30:11.000+0000", "updated": "2013-11-24T22:30:11.000+0000" }, { "id": "299988", "author": { "name": "santiago16", "key": "santiago16", "displayName": "Santiago Valencia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Trying to do: \n\n\t\t\t\n\t\t \n\t\t \n\t\t \nThat shows the text L... and when try the attribute text also doesn't show any text. I did what I want at code level creating a array of text and setting as a labels attributes for tabbedbar, but shouldn't it work in the View part?\n\nRegards,", "updateAuthor": { "name": "santiago16", "key": "santiago16", "displayName": "Santiago Valencia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-06T05:41:18.000+0000", "updated": "2014-04-06T05:41:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }