{"action":"created","issue":{"url":"https://api.github.com/repos/gmarty/xgettext/issues/59","repository_url":"https://api.github.com/repos/gmarty/xgettext","labels_url":"https://api.github.com/repos/gmarty/xgettext/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/gmarty/xgettext/issues/59/comments","events_url":"https://api.github.com/repos/gmarty/xgettext/issues/59/events","html_url":"https://github.com/gmarty/xgettext/issues/59","id":188272551,"number":59,"title":"New method pgettext() not recognizing by Poedit","user":{"login":"Zaszczyk","id":7737337,"avatar_url":"https://avatars.githubusercontent.com/u/7737337?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaszczyk","html_url":"https://github.com/Zaszczyk","followers_url":"https://api.github.com/users/Zaszczyk/followers","following_url":"https://api.github.com/users/Zaszczyk/following{/other_user}","gists_url":"https://api.github.com/users/Zaszczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaszczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaszczyk/subscriptions","organizations_url":"https://api.github.com/users/Zaszczyk/orgs","repos_url":"https://api.github.com/users/Zaszczyk/repos","events_url":"https://api.github.com/users/Zaszczyk/events{/privacy}","received_events_url":"https://api.github.com/users/Zaszczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-09T15:19:04Z","updated_at":"2016-11-09T22:30:17Z","closed_at":null,"body":"I've implemented method pgettext() in my gettext adapter to handle context and I would like to Poedit recognize pgettext() in .volt files. I've added this keyword in Catalogoue->Properties->Keywords, it works for *.php file only, it doesn't work for *.volt.\r\n\r\nShould I add something extra to extractor's settings or somewhere else?\r\n"},"comment":{"url":"https://api.github.com/repos/gmarty/xgettext/issues/comments/259545626","html_url":"https://github.com/gmarty/xgettext/issues/59#issuecomment-259545626","issue_url":"https://api.github.com/repos/gmarty/xgettext/issues/59","id":259545626,"user":{"login":"Zaszczyk","id":7737337,"avatar_url":"https://avatars.githubusercontent.com/u/7737337?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaszczyk","html_url":"https://github.com/Zaszczyk","followers_url":"https://api.github.com/users/Zaszczyk/followers","following_url":"https://api.github.com/users/Zaszczyk/following{/other_user}","gists_url":"https://api.github.com/users/Zaszczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaszczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaszczyk/subscriptions","organizations_url":"https://api.github.com/users/Zaszczyk/orgs","repos_url":"https://api.github.com/users/Zaszczyk/repos","events_url":"https://api.github.com/users/Zaszczyk/events{/privacy}","received_events_url":"https://api.github.com/users/Zaszczyk/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T22:30:16Z","updated_at":"2016-11-09T22:30:16Z","body":"@smhg @dschissler obviously I have configured extractor, because I use xgettext-volt from 6 months :) it's great lib! And I would like to add new keyword now. Extractor config:\r\n![extractor](https://cloud.githubusercontent.com/assets/7737337/20157026/23bac8ba-a6d3-11e6-90c5-1f33313c3d86.png)\r\nKeywords config:\r\n![keywords](https://cloud.githubusercontent.com/assets/7737337/20157069/5d498526-a6d3-11e6-94c8-904ada55a08f.png)\r\nAnd Poedit parses string:\r\n`{{ translation.pgettext('general.merged', [], 'female') }}`\r\nas normal translation._(), without context.\r\nDetails:\r\n-general.merged - msgid\r\n-[] - empty array with placeholders\r\n-female - context\r\n\r\nHowever when I put this pgettext translation to .php file, Poedit parses it right - with context."}}
{"actor":{"display_login":"Zaszczyk"}}