{ "id": "127010", "key": "TIMOB-16600", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-03-02T10:30:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "cb-tooling", "defect" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:10.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "It seems like it is not possible to internationalize options while defining an OptionDialog using Alloy markup.\r\n\r\nI tried this:\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nAnd this (mind the quotes):\r\n{code:xml}\r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nBut the dialog keeps showing bare strings (i.e. {{L('end_ride_dialog_option_cancel')}}).", "attachment": [ { "id": "46391", "filename": "broken-option-dialog.tgz", "author": { "name": "landimatte", "key": "landimatte", "displayName": "Matteo Landi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-05T20:36:02.000+0000", "size": 636833, "mimeType": "application/x-compressed-tar" } ], "flagged": false, "summary": "Alloy: Cannot internationalize options of an OptionDialog ", "creator": { "name": "landimatte", "key": "landimatte", "displayName": "Matteo Landi", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "landimatte", "key": "landimatte", "displayName": "Matteo Landi", "active": true, "timeZone": "Europe/Berlin" }, "environment": "- Titanium 3.2.1\r\n- Titanium SDK 3.2.1.GA\r\n- Alloy 1.3.1", "comment": { "comments": [ { "id": "295712", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We would appreciate if you can provide a simple but runnable test case to reproduce the issue. We want to make sure that we reproduce the same issue that you are running into.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-05T05:01:34.000+0000", "updated": "2014-03-05T05:01:34.000+0000" }, { "id": "295794", "author": { "name": "landimatte", "key": "landimatte", "displayName": "Matteo Landi", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please see the attached example. Let me know if you need anything else.", "updateAuthor": { "name": "landimatte", "key": "landimatte", "displayName": "Matteo Landi", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-05T20:37:21.000+0000", "updated": "2014-03-05T20:37:21.000+0000" }, { "id": "295895", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving it to engineering as I can reproduce the issue with the provided test case. Same functionality works fine with the following Titanium test case.\r\n\r\n{code}\r\nTi.UI.setBackgroundColor('white');\r\nvar win = Ti.UI.createWindow({\r\n title: 'Click window to test',\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false\r\n});\r\n\r\nvar opts = {\r\n cancel: 2,\r\n options: [L('option1'), 'Help', 'Cancel'],\r\n selectedIndex: 2,\r\n destructive: 0,\r\n title: 'Delete File?'\r\n};\r\n\r\nwin.addEventListener('click', function(e){\r\n var dialog = Ti.UI.createOptionDialog(opts).show();\r\n});\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-06T06:20:35.000+0000", "updated": "2014-03-06T06:20:35.000+0000" }, { "id": "296331", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Moved to TIMOB since this can be reproduced using classic Titanium code. Possibly duplicates TIMOB-15376 also.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-03-10T17:35:48.000+0000", "updated": "2014-03-10T17:35:48.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }