{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/i18n-command/issues/4","repository_url":"https://api.github.com/repos/wp-cli/i18n-command","labels_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/4/comments","events_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/4/events","html_url":"https://github.com/wp-cli/i18n-command/issues/4","id":281828246,"number":4,"title":"Translator comments are not extracted if they are not directly followed by a gettext function","user":{"login":"ocean90","id":617637,"avatar_url":"https://avatars2.githubusercontent.com/u/617637?v=4","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"labels":[{"id":757337991,"url":"https://api.github.com/repos/wp-cli/i18n-command/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-13T17:13:33Z","updated_at":"2018-02-22T15:56:58Z","closed_at":null,"author_association":"NONE","body":"Example plugin file:\r\n\r\n```php\r\n<?php\r\n/**\r\n * Plugin Name: Plugin name\r\n */\r\n\r\n/* translators: TRANSLATORS!! */\r\n_e( 'hello world', 'test-plugin' );\r\n\r\n/* translators: TRANSLATORS!! */\r\n$foo = __( 'foo', 'test-plugin' );\r\n```\r\n\r\n\r\nRunning the makpot command creates this POT file:\r\n\r\n```pot\r\n# Copyright (C) 2017 Plugin name\r\n# This file is distributed under the same license as the Plugin name package.\r\nmsgid \"\"\r\nmsgstr \"\"\r\n\"Project-Id-Version: Plugin name\\n\"\r\n\"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/test-plugin\\n\"\r\n\"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n\"\r\n\"Language-Team: LANGUAGE <LL@li.org>\\n\"\r\n\"MIME-Version: 1.0\\n\"\r\n\"Content-Type: text/plain; charset=UTF-8\\n\"\r\n\"Content-Transfer-Encoding: 8bit\\n\"\r\n\"POT-Creation-Date: 2017-12-13T17:11:07+00:00\\n\"\r\n\"PO-Revision-Date: 2017-12-13T17:11:07+00:00\\n\"\r\n\"X-Domain: test-plugin\\n\"\r\n\r\n#. translators: TRANSLATORS!!\r\n#: test-plugin.php:7\r\nmsgid \"hello world\"\r\nmsgstr \"\"\r\n\r\n#: test-plugin.php:10\r\nmsgid \"foo\"\r\nmsgstr \"\"\r\n\r\n#. Plugin Name of the plugin/theme\r\nmsgid \"Plugin name\"\r\nmsgstr \"\"\r\n```\r\n\r\nNote the missing comment for \"foo\"."},"comment":{"url":"https://api.github.com/repos/wp-cli/i18n-command/issues/comments/367726539","html_url":"https://github.com/wp-cli/i18n-command/issues/4#issuecomment-367726539","issue_url":"https://api.github.com/repos/wp-cli/i18n-command/issues/4","id":367726539,"user":{"login":"swissspidy","id":841956,"avatar_url":"https://avatars1.githubusercontent.com/u/841956?v=4","gravatar_id":"","url":"https://api.github.com/users/swissspidy","html_url":"https://github.com/swissspidy","followers_url":"https://api.github.com/users/swissspidy/followers","following_url":"https://api.github.com/users/swissspidy/following{/other_user}","gists_url":"https://api.github.com/users/swissspidy/gists{/gist_id}","starred_url":"https://api.github.com/users/swissspidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swissspidy/subscriptions","organizations_url":"https://api.github.com/users/swissspidy/orgs","repos_url":"https://api.github.com/users/swissspidy/repos","events_url":"https://api.github.com/users/swissspidy/events{/privacy}","received_events_url":"https://api.github.com/users/swissspidy/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T15:56:58Z","updated_at":"2018-02-22T15:56:58Z","author_association":"COLLABORATOR","body":"This specific case is now addressed. https://github.com/oscarotero/Gettext/pull/166 now aims to improve support for multi-line comments and comments on the same line as the function.\r\n\r\nI'll continue to address this in #23."}}
{"actor":{"display_login":"swissspidy"}}