{ "id": "131432", "key": "TIMOB-17205", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": null, "resolutiondate": null, "created": "2014-06-09T17:00:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [], "issuelinks": [ { "id": "39902", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "132505", "key": "ALOY-1067", "fields": { "summary": "Support L() in XML as Label text ", "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": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:32.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{code}\r\n$.textLabel.text = L(\"not_existing_key\");\r\n{code}\r\n\r\nFor Android, render nothing on screen (null string).\r\nFor iOS, render 'not_existing_key' (i18n xml name property value itself).\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: (Parity) Ti.Locale.getString for not existing entry in i18n xml is showing null/empty on Android", "creator": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "9ruvie", "key": "9ruvie", "displayName": "Jungwook Son", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.4.0.v20140530162512", "comment": { "comments": [ { "id": "308186", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nFor your case, seems like there is miss match between your code and i18n xml file, as I had tested your code, it works well for me.\r\nSo would you please try the following suggestion:\r\n\r\n1. Double check your xml name property spelling. \r\n2. Replace the your code with\r\n {code}\r\n var i18nMissingMsg = '';\r\n $.textLabel.text = L(\"not_existing_key\", i18nMissingMsg);\r\n {code}\r\n Then check the output, if the output is , means there is miss match between your code and i18n xml file.\r\n3. If it still doesn't work well, can you tell me the following question:\r\n 3a. Do other Ti.locale translation properties work well? (like define a simple name hello)\r\n 3b. The version of your titanium SDK.\r\n 3c. Share more related codes for me.\r\n\r\nRegards,\r\nShuo Liang", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-10T02:38:36.000+0000", "updated": "2014-06-10T02:38:36.000+0000" }, { "id": "310799", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Leaving priority to none, Platform will reassign it as needed. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-24T23:20:14.000+0000", "updated": "2014-06-24T23:20:14.000+0000" }, { "id": "391985", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I believe this ticket should be picked up. It is not in line with how iOS handles missing translations in Appcelerator. \r\n\r\nOn iOS the key will be displayed for missing translations, on Android it will display *false*. In terms of Parity, this should be the same for both platforms.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-29T14:24:52.000+0000", "updated": "2016-07-29T14:24:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }