{ "id": "117972", "key": "TIMOB-14763", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-22T04:57:23.000+0000", "created": "2013-08-04T21:47:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alert", "alertDialog", "ios" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "36379", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "121162", "key": "ALOY-853", "fields": { "summary": "Internationalization in markup required cause of creation only property", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-17T19:01:00.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "titleid and messageid property doesn't work for alertDialog.\r\n\r\n*i18n/en/strings.xml*\r\n{code:xml} \r\n\r\n\r\n\tHello\r\n\tworld!\r\n\r\n{code} \r\n\r\n*app.js*\r\n{code:javascript} \r\nvar win = Ti.UI.createWindow();\r\n\r\nvar alert = Ti.UI.createAlertDialog({\r\n\ttitleid: \"hello\",\r\n\tmessageid: \"world\"\r\n});\r\n\r\nconsole.log(L(\"hello\") + \" \" + L(\"world\"));\r\n\r\nalert.show();\r\nwin.open();\r\n{code}\r\n\r\n*Docs*\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.AlertDialog-property-titleid", "attachment": [], "flagged": false, "summary": "iOS: titleid and messageid properties don't work for AlertDialog", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1.1 GA", "closedSprints": [ { "id": 707, "state": "closed", "name": "2016 Sprint 19 SDK", "startDate": "2016-09-10T00:17:15.164Z", "endDate": "2016-09-24T00:17:00.000Z", "completeDate": "2016-09-26T05:17:04.253Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "265008", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.1 GA and 3.2 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T22:29:40.000+0000", "updated": "2013-08-05T22:29:40.000+0000" }, { "id": "281823", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "body": "Tested and confirmed on iOS 7.0.3 simulator with Ti SDK 3.1.3 GA\r\n", "updateAuthor": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-29T16:34:09.000+0000", "updated": "2013-11-29T16:34:09.000+0000" }, { "id": "293282", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Tested with SDK 3.2.1.GA, Ti/CLI 3.2.1, iOS 7.0.3 simulator, Android 4.2.2. \n\nIt works fine on Android. However, the properties do not work on iOS as reported.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-14T21:26:03.000+0000", "updated": "2014-02-14T21:26:03.000+0000" }, { "id": "319077", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "titleid and messageid work fine on Android. However, buttonnames do not.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-18T14:32:09.000+0000", "updated": "2014-08-18T14:32:09.000+0000" }, { "id": "396100", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem was that the {{langConversationTable}} was not triggered from it's delegate, because the alert-dialog proxy extended the {{TiProxy}} and not {{TiViewProxy}} that has the method. \r\n \r\nPR: https://github.com/appcelerator/titanium_mobile/pull/8379\r\n\r\n*Demo*:\r\n{{i18n/en/strings.xml}}\r\n{code:xml}\r\n\r\n\r\n\tMy Title\r\n\tMy Message\t\t\r\n\r\n{code}\r\n\r\n{{app.js}}\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Show alert\"\r\n});\r\n\r\nvar alertD = Ti.UI.createAlertDialog({\r\n titleid: \"my_title\",\r\n messageid: \"my_message\",\r\n buttonNames: [\"Cancel\", \"Delete\", \"OK\"], // Some non-localized elements as well\r\n cancel: 0,\r\n destructive: 1\r\n});\r\n\r\nalertD.addEventListener(\"click\", function(e) {\r\n alert(e.index);\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n alertD.show();\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T09:17:38.000+0000", "updated": "2016-09-22T04:57:01.000+0000" }, { "id": "396907", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. PR merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-22T04:56:32.000+0000", "updated": "2016-09-22T04:56:32.000+0000" }, { "id": "401464", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, additionally tested with special characters.\r\n\r\nTested On:\r\niPhone 6 Plus 10.1.1 Device & Simulator\r\niPhone 5S 9.3.5 Device\r\nMac OS Sierra (10.12.1)\r\nTi SDK: 6.1.0.v20161116071014\r\nAppc Studio: 4.8.0.201611121409\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-14\r\nXcode 8.1\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-11-17T19:00:32.000+0000", "updated": "2016-11-17T19:00:32.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }