{ "id": "93981", "key": "TIMOB-9815", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-21T17:26:37.000+0000", "created": "2012-06-27T08:34:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T00:01:05.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": "10207", "name": "Tooling" } ], "description": "Add the ability to use an i18n folder when running a test suite.\r\n\r\nI need to be able to define an i18n folder that is used when running a test suite so that I can test certain functionality and failure cases in modules.", "attachment": [], "flagged": false, "summary": "Anvil: Add support for i18n folders", "creator": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "242636", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h2. Test Case\r\n\r\nThis uses the \"app\" Anvil config just for convenience (so you don't need to setup a completely new config just to test this.)\r\n\r\nh3. Create the strings.xml file\r\n* Create the folder support/anvil/configSet/configs/app/i18n/en\r\n* Open support/anvil/configSet/configs/app/i18n/en/strings.xml in your favorite editor.\r\n* Add the following:\r\n{code}\r\n\r\n\r\n\tI am i18n\r\n\r\n{code}\r\n\r\nh3. Create a test\r\n* Open support/anvil/configSet/Resources/suites/app.js.\r\n* Add this line to the test therein:\r\n{code}\r\nvalueOf(testRun, L(\"test\")).shouldBe(\"I am i18n\");\r\n{code}\r\n\r\nh4. Run the test\r\n* Run the app config suites in Anvil (this assume you know how to run Anvil -- that's not covered here.) e.g.:\r\n{code}\r\nCLI> start --config=app\r\n{code}\r\n* The tests therein should succeed.\r\n", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-18T11:59:07.000+0000", "updated": "2013-03-18T12:18:23.000+0000" }, { "id": "242648", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request has been submitted:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3977", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-18T12:47:44.000+0000", "updated": "2013-03-18T12:47:44.000+0000" }, { "id": "410023", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T00:01:05.000+0000", "updated": "2017-03-09T00:01:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }