{ "id": "146718", "key": "TIMOB-18816", "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": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-21T20:36:45.000+0000", "created": "2015-04-08T17:35:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "language" ], "versions": [], "issuelinks": [ { "id": "48157", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "148515", "key": "TIDOC-2221", "fields": { "summary": "Guide: Update Internationalization guide for region locale support in i18n directory", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-16T21:54:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Following are the issues found around the modification of language at runtime in Android app:\r\n* Titanium module LocaleModule does not offer support for changing the language (it is supported on iOS)\r\n* Compilation script does not support regions (i.e. es-CO, es-CL)\r\n\r\nIn the current task it’s required to allow the modification of language + region for Android platform.\r\n\r\nGithub PR: https://github.com/appcelerator/titanium_mobile/pull/6772", "attachment": [ { "id": "55929", "filename": "TestApp.zip", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-23T18:22:05.000+0000", "size": 2490, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Region support for i18n directory", "creator": { "name": "pastuxso", "key": "pastuxso", "displayName": "Cristian Cepeda", "active": true, "timeZone": "America/Bogota" }, "subtasks": [], "reporter": { "name": "pastuxso", "key": "pastuxso", "displayName": "Cristian Cepeda", "active": true, "timeZone": "America/Bogota" }, "environment": null, "closedSprints": [ { "id": 404, "state": "closed", "name": "2015 Sprint 10 SDK", "startDate": "2015-05-09T00:00:53.391Z", "endDate": "2015-05-23T00:00:00.000Z", "completeDate": "2015-05-25T14:55:16.386Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "353057", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "To test: \r\n-Scons the to get the Appcelerator SDK\r\n-Install in Studio\r\n-Do the following steps below\r\n\r\nTest code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'Press Me for ja',\r\n top: 10,\r\n height: 50\r\n});\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n title: 'Press Me for en',\r\n top: 60,\r\n height: 50\r\n});\r\n\r\nbutton.addEventListener('click',function(e)\r\n{\r\n Titanium.API.info(\"You clicked the button\");\r\n Ti.Locale.setLanguage(\"ja\");\r\n var str1 = L('timobtest');\r\n var str2 = Ti.Locale.getString('timobtest');\r\n Titanium.API.info(str1);\r\n Titanium.API.info(str2);\r\n});\r\n\r\nbutton2.addEventListener('click',function(e)\r\n{\r\n Titanium.API.info(\"You clicked the button\");\r\n Ti.Locale.setLanguage(\"en\");\r\n var str1 = L('timobtest');\r\n var str2 = Ti.Locale.getString('timobtest');\r\n Titanium.API.info(str1);\r\n Titanium.API.info(str2);\r\n});\r\n\r\nwin.add(button);\r\nwin.add(button2);\r\n\r\nwin.open();\r\n{code}\r\n\r\nPlease put 2 strings.xml in the following folder: \r\n/platform/android/res/values-en/strings.xml\r\n/platform/android/res/values-ja/strings.xml\r\n\r\nIt should contain:-\r\n{code}\r\n\r\n\r\n\tCat\r\n\r\n{code}\r\nfor the first strings.xml and\r\n{code}\r\n\r\n\r\n\t\r\n\r\n{code}\r\nFor the second strings.xml\r\n", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-20T07:17:03.000+0000", "updated": "2015-05-20T07:17:03.000+0000" }, { "id": "355781", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~emerriman] Attached sample code to test region support.", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-23T18:22:36.000+0000", "updated": "2015-06-23T18:22:36.000+0000" }, { "id": "413213", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue has been fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:54:21.000+0000", "updated": "2017-03-16T21:54:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }