{"action":"opened","issue":{"url":"https://api.github.com/repos/statamic/v2-hub/issues/1084","repository_url":"https://api.github.com/repos/statamic/v2-hub","labels_url":"https://api.github.com/repos/statamic/v2-hub/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/statamic/v2-hub/issues/1084/comments","events_url":"https://api.github.com/repos/statamic/v2-hub/issues/1084/events","html_url":"https://github.com/statamic/v2-hub/issues/1084","id":187062763,"number":1084,"title":"Addon fieldtype options are not translated correctly","user":{"login":"rrelmy","id":442683,"avatar_url":"https://avatars.githubusercontent.com/u/442683?v=3","gravatar_id":"","url":"https://api.github.com/users/rrelmy","html_url":"https://github.com/rrelmy","followers_url":"https://api.github.com/users/rrelmy/followers","following_url":"https://api.github.com/users/rrelmy/following{/other_user}","gists_url":"https://api.github.com/users/rrelmy/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelmy/subscriptions","organizations_url":"https://api.github.com/users/rrelmy/orgs","repos_url":"https://api.github.com/users/rrelmy/repos","events_url":"https://api.github.com/users/rrelmy/events{/privacy}","received_events_url":"https://api.github.com/users/rrelmy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T13:42:43Z","updated_at":"2016-11-03T13:42:43Z","closed_at":null,"body":"### Expected behaviour\r\nThe `fieldtype_fields` in a addon should show the text defined in a language file.\r\n\r\n### Actual behaviour\r\nThe options are visible but the title and instruct message are not available, it displays:\r\n`fieldtypes/test.foobar` and `fieldtypes/test.foobar_instruct`\r\n\r\nThe text should be prefixed with the addon namespace for translations.  \r\n`addons.Test::fieldtypes.foobar`\r\n\r\n### Steps to reproduce\r\n1.  `php please make:fieldtype Test`\r\n2.  Add `fieldtype_fields` to the `meta.yaml` file\r\n```\r\nfieldtype_fields:\r\n  foobar:\r\n    type: text\r\n```\r\n3. Try to add the titles and instruct messages somewhere (example: `resources/lang/en/fieldtypes.php`)\r\n4.  Add the field to a fieldset and look at the foobar option\r\n\r\n### Server configuration\r\n**Statamic version:** 2.1.17\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"rrelmy"}}