{ "id": "64078", "key": "TIMOB-3446", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-03-16T13:06:48.000+0000", "created": "2011-04-15T03:45:16.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "reported-1.7.0", "training" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "15797", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61700", "key": "TIMOB-1068", "fields": { "summary": "setLocale on picker doesn't work and sometimes crashes", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:31:52.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": "h2. Expected Result\r\nSetting the {{locale}} property of a date picker, or using picker.setLocale() method, should localize a picker\r\n\r\nStramer posted the following comment on this topic in [this post|https://github.com/appcelerator/titanium_mobile/pull/1269/files#r389756], \"We may be able to file a bug/feature request to support custom localizations on iOS. Instead of setting the locale directly, we can probably set the picker's calendar type.\"\r\n\r\nh2. Actual Result\r\nDoes nothing\r\n\r\nh2. Test case\r\n\r\nTest using the KS:\r\n\r\n* Launch Kitchen Sink on Device\r\n* Run Controls > Picker > Date Picker\r\n* Click \"Change locale\" button to programmatically change to locale \"ru\"\r\n\r\n...or test using the following code:\r\n\r\n{code:lang=javascript|title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\tfullscreen:false,\r\n\texitOnClose:true\r\n});\r\n\r\nvar minDate = new Date(2011,11,1);\r\n\r\nvar maxDate = new Date(2012,11,31);\r\n\r\nvar value = new Date();\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\tlocale:'fr',\r\n\ttype:Ti.UI.PICKER_TYPE_DATE_AND_TIME,\r\n\tminDate:minDate,\r\n\tmaxDate:maxDate,\r\n\tvalue:value\r\n});\r\npicker.setLocale('fr');\r\nTi.API.info('The current picker value is: ' + picker.value)\r\nwin1.add(picker);\r\n\r\nwin1.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: UI.Picker - add support for locale property and setLocale method", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium 1.7.0 (03/23/11 09:50 87caf1e...) and 1.8.0.1 (12/22/11 13:09 fbdc96f)\r\n* iOS\r\n* Mac OSX Snow Leopard\r\n* iPhone 4 4.3\r\n* iphone simulator 4.3.2", "comment": { "comments": [ { "id": "186848", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Proposing we close this as a duplicate of TIMOB 1068.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T12:47:12.000+0000", "updated": "2012-03-16T12:47:12.000+0000" }, { "id": "186856", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-1068.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T13:06:48.000+0000", "updated": "2012-03-16T13:06:48.000+0000" }, { "id": "410602", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:31:52.000+0000", "updated": "2017-03-09T21:31:52.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }