{ "id": "130874", "key": "AC-1128", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-07-14T15:59:56.000+0000", "created": "2014-05-25T05:04:04.000+0000", "labels": [ "Android,", "i18n,", "localization," ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:29.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "This is happening just as in TIMOB-2563 once again in 3.2.0 on thru 3.2.3:\r\nAndroid: region-specific i18n files need to be copied to res with \"r\" in front of region.\r\nAs mentioned this does NOT occur for iOS, so the folder needs to be renamed back again, in order to build for iOS.", "attachment": [], "flagged": false, "summary": "region-specific i18n files need to be copied to res with \"r\" in front of region", "creator": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "bburgess66@netvigator.com", "key": "bburgess66@netvigator.com", "displayName": "Brian Burgess", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "From 3.2.0 thru 3.2.3 (on Mac 10.8.5) building for Android", "comment": { "comments": [ { "id": "312783", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\nIt’s not a bug. It’s working as expected. But keep in mind that in the i18n folder you have to create supported language sort code folder according to the [ISO 639-1|http://en.wikipedia.org/wiki/ISO_639-1] standard for example, en for English is the default. And XML file will be added inside that folder . \r\n!http://www.2imgs.com/779f5872a1!\r\n\r\nh2.Testing Environment\r\nTitanium SDK: 3.2.3, 3.3.0.RC,\r\nTitanium CLI: 3.3.0 –rc,\r\nAndroid SDK: 4.2.2, 4.4.2\r\nOS X Version: 10.9.3,\r\nAppcelerator Studio: 3.2.3\r\n\r\nh2.Steps to test\r\n1. Create a classic project.\r\n2. Paste this code in app.js file.\r\n3. In i18n folder, create [ISO 639-1|http://en.wikipedia.org/wiki/ISO_639-1] standard language folder.\r\n4. Change your device language according to your i18n folder.\r\n5. Run this code with the testing environment.\r\n\r\nh2.Test Code\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n\tcolor : '#999',\r\n\ttext : 'I am Window 1, here is my message: ' + L('hello'),\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n});\r\n\r\nwin.add(label);\r\n\r\nwin.open();\r\n{code}\r\n\r\n{code:title=i18n/en or other language/strings.xml}\r\n\r\n\r\n hello in belgian french\r\n\r\n{code}\r\n\r\nFor detail info follow [this link|http://docs.appcelerator.com/titanium/latest/#!/guide/Internationalization].\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-08T05:57:08.000+0000", "updated": "2014-07-14T15:59:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }