{ "id": "114074", "key": "TIMOB-13853", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-05-09T14:03:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "i18n", "internationalization" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:56.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "Often I use {{hint}} - the second parameter for {{L}} ({{Ti.Locale.getString}}) - to specify the default (English) text. In this way, I only have to provide a {{strings.xml}} for alternative languages.\r\n\r\nI think it would be a small but nice improvement to use the {{text}} property as the {{hint}} when a {{textid}} property is set. Right now, the {{text}} ({{title}}, {{message}} etc.) property is completely ignored if you have a {{textid}} ({{titleid}}, {{messageid}} etc.) property.", "attachment": [], "flagged": false, "summary": "i18n: textid should use text as hint", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "251343", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To complete this report, please could you provide a simple code example?\r\n\r\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T18:15:17.000+0000", "updated": "2013-05-10T18:15:17.000+0000" }, { "id": "251855", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Of course. The goal would be to make this:\n\n{code}\nvar label = Ti.UI.createLabel({ text: L('hello_world', 'Hello world!') });\n{code}\n\nThe same as:\n\n{code}\nvar label = Ti.UI.createLabel({ textid: 'hello_world', text: 'Hello word!' });\n{code}\n\nIn both cases, if {{hello_world}} is found in the {{strings.xml}}, then that text should be used. If not, then the hint/text {{Hello world!}} should be used.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-05-14T18:00:32.000+0000", "updated": "2013-05-14T18:00:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }