{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3186","repository_url":"https://api.github.com/repos/wp-cli/wp-cli","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3186/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3186/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3186/events","html_url":"https://github.com/wp-cli/wp-cli/issues/3186","id":166847194,"number":3186,"title":"Singular/plural message in commands","user":{"login":"ernilambar","id":2098823,"avatar_url":"https://avatars.githubusercontent.com/u/2098823?v=3","gravatar_id":"","url":"https://api.github.com/users/ernilambar","html_url":"https://github.com/ernilambar","followers_url":"https://api.github.com/users/ernilambar/followers","following_url":"https://api.github.com/users/ernilambar/following{/other_user}","gists_url":"https://api.github.com/users/ernilambar/gists{/gist_id}","starred_url":"https://api.github.com/users/ernilambar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernilambar/subscriptions","organizations_url":"https://api.github.com/users/ernilambar/orgs","repos_url":"https://api.github.com/users/ernilambar/repos","events_url":"https://api.github.com/users/ernilambar/events{/privacy}","received_events_url":"https://api.github.com/users/ernilambar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/question","name":"question","color":"bfe5bf"},{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/scope:documentation","name":"scope:documentation","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-21T15:23:41Z","updated_at":"2016-07-21T16:16:16Z","closed_at":"2016-07-21T16:16:16Z","body":"Which approach should we follow?\r\n\r\n```\r\n$message = ( 1 === $executed ) ? 'Executed a total of %d cron event.' : 'Executed a total of %d cron events.';\r\nWP_CLI::success( sprintf( $message, $executed ) );\r\n```\r\n\r\nOther approach using `_n()`\r\n\r\n```\r\nWP_CLI::success( sprintf(\r\n    'Finished regenerating %1$s.',\r\n    _n('the image', 'all images', $count)\r\n) );\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/234304733","html_url":"https://github.com/wp-cli/wp-cli/issues/3186#issuecomment-234304733","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/3186","id":234304733,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T16:16:16Z","updated_at":"2016-07-21T16:16:16Z","body":"> Which approach should we follow?\r\n\r\nThe first, because it will work when WordPress isn't present, or not yet loaded."}}
{"actor":{"display_login":"danielbachhuber"}}