{ "id": "105100", "key": "TIMOB-11794", "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": [ { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14789", "description": "2012 Sprint 26 JS", "name": "2012 Sprint 26 JS", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-07T15:27:29.000+0000", "created": "2012-11-15T22:29:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [ { "id": "22881", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "105099", "key": "TIMOB-11793", "fields": { "summary": "Android: New Feature: Add RTL as a property in Labels to display Arabic text properly", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-02-12T21:55:38.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h3. Feature Description\r\nIn order to correctly display Arabic text we need to implement the property RTL, which will align the the text to the right. \r\n\r\nh4. More info\r\nIn CSS this is done using direction:rtl \r\n\r\nh4. Extra comment \r\nIf you are passing a string in arabic, it should already have the proper orientation (as any i18n string). \r\n\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#ececec'});\r\nvar label = Ti.UI.createLabel({text:' والديون الأوضاع القوقازية, أي لها ووصف الألمانية،. دنكيرك الأثنان'});\r\nwin.add(label);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "35536", "filename": "i18n.zip", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T21:55:11.000+0000", "size": 2009, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: New Feature: Add RTL as a property in Labels to display Arabic text properly", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "230427", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Could you please create a test case and attach it to this ticket? I don't want to guess how it should look and mess it up. :)", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-07T19:41:56.000+0000", "updated": "2012-12-07T19:41:56.000+0000" }, { "id": "231381", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "After the locale has been detected in Ti/Locale.js, need to determine if language is a RTL and if so, set the \"dir\" and \"lang\" attributes on the html tag set by:\n\n{code}\ndocument.getElementsByTagName('html')[0].setAttribute('dir', ???)\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-14T01:09:22.000+0000", "updated": "2012-12-14T01:09:22.000+0000" }, { "id": "231382", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Whitelist the valid RTL locales to speed up lookups and save bytes.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-14T01:11:09.000+0000", "updated": "2012-12-14T01:11:09.000+0000" }, { "id": "233203", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Requests:\n\n3.0.X [https://github.com/appcelerator/titanium_mobile/pull/3658]\nMaster [https://github.com/appcelerator/titanium_mobile/pull/3656]", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-03T17:37:50.000+0000", "updated": "2013-01-03T17:37:50.000+0000" }, { "id": "233348", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bad Merge Fix Pull Requests:\n\nmaster - https://github.com/appcelerator/titanium_mobile/pull/3663\n3.0.x - https://github.com/appcelerator/titanium_mobile/pull/3665", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-05T17:43:01.000+0000", "updated": "2013-01-05T17:43:01.000+0000" }, { "id": "233462", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Closing now that the bug has been fixed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-07T15:27:29.000+0000", "updated": "2013-01-07T15:27:29.000+0000" }, { "id": "238251", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test code:\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'#ececec'});\r\nvar label = Ti.UI.createLabel({\r\n\t//text: \"والديون الأوضاع القوقازية, أي لها ووصف الألمانية،. دنكيرك الأثنان\",\r\n\ttext:L('label_me'),\r\n\twidth: 450,\r\n\tcolor: \"black\",\r\n\tborderColor: 'black',\r\n\tbackgroundColor:'blue'\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n1) Add the attached i18n folder to your project at the root level.\r\n2) Use the above code\r\n3) On mac, in system preferences>Language and Text, drag arabic to the top of the pane \"language\"\r\n4) Restart your browser\r\n5) Test away. Arabic string should be right-justified", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T21:53:40.000+0000", "updated": "2013-02-12T21:54:12.000+0000" }, { "id": "238254", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CLI: 3.0.24-cr
\r\nTitanium SDK version 3.0.2.v20130207164659\r\n
Titanium Studio, build: 3.0.2.201302041757\r\nMac OS 10.8.2", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T21:55:38.000+0000", "updated": "2013-02-12T21:55:38.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }