{"action":"created","comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/27841167","id":27841167,"diff_hunk":"@@ -125,6 +143,106 @@ public function install( $args, $assoc_args ) {\n \t}\n \n \t/**\n+\t * Updates the active translation of core, plugins, and themes.\n+\t *\n+\t * [--dry-run]\n+\t * : Preview which translations would be updated.\n+\t *\n+\t * @subcommand update\n+\t */\n+\tpublic function update( $args, $assoc_args ) {\n+\n+\t\t// Ignore updates for the default locale.\n+\t\tif ( 'en_US' == get_locale() ) {\n+\t\t\t\\WP_CLI::success( \"Translations updates are not needed for the 'English (US)' locale.\" );\n+\n+\t\t\treturn;\n+\t\t}\n+\n+\t\twp_clean_update_cache(); // Clear existing update caches.\n+\t\twp_version_check();  // Check for Core updates.\n+\t\twp_update_themes();  // Check for Theme updates.\n+\t\twp_update_plugins(); // Check for Plugin updates.","path":"php/WP_CLI/CommandWithTranslation.php","position":69,"original_position":69,"commit_id":"6b95e929a009324c20ccf3fa8d961e72e8131864","original_commit_id":"6b95e929a009324c20ccf3fa8d961e72e8131864","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},"body":":+1: ","created_at":"2015-04-06T23:43:31Z","updated_at":"2015-04-06T23:43:31Z","html_url":"https://github.com/wp-cli/wp-cli/pull/1731#discussion_r27841167","pull_request_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731","_links":{"self":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments/27841167"},"html":{"href":"https://github.com/wp-cli/wp-cli/pull/1731#discussion_r27841167"},"pull_request":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731"}}},"pull_request":{"url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731","id":32172831,"html_url":"https://github.com/wp-cli/wp-cli/pull/1731","diff_url":"https://github.com/wp-cli/wp-cli/pull/1731.diff","patch_url":"https://github.com/wp-cli/wp-cli/pull/1731.patch","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1731","number":1731,"state":"open","locked":false,"title":"Add `wp core language update` command and Behat tests","user":{"login":"wrnx","id":6766073,"avatar_url":"https://avatars.githubusercontent.com/u/6766073?v=3","gravatar_id":"","url":"https://api.github.com/users/wrnx","html_url":"https://github.com/wrnx","followers_url":"https://api.github.com/users/wrnx/followers","following_url":"https://api.github.com/users/wrnx/following{/other_user}","gists_url":"https://api.github.com/users/wrnx/gists{/gist_id}","starred_url":"https://api.github.com/users/wrnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrnx/subscriptions","organizations_url":"https://api.github.com/users/wrnx/orgs","repos_url":"https://api.github.com/users/wrnx/repos","events_url":"https://api.github.com/users/wrnx/events{/privacy}","received_events_url":"https://api.github.com/users/wrnx/received_events","type":"User","site_admin":false},"body":"Should fix #1387","created_at":"2015-03-28T22:50:19Z","updated_at":"2015-04-06T23:43:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdb412a825df82293de74ea5e3e781961b953ce1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731/commits","review_comments_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731/comments","review_comment_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1731/comments","statuses_url":"https://api.github.com/repos/wp-cli/wp-cli/statuses/6b95e929a009324c20ccf3fa8d961e72e8131864","head":{"label":"wrnx:add-core-language-update","ref":"add-core-language-update","sha":"6b95e929a009324c20ccf3fa8d961e72e8131864","user":{"login":"wrnx","id":6766073,"avatar_url":"https://avatars.githubusercontent.com/u/6766073?v=3","gravatar_id":"","url":"https://api.github.com/users/wrnx","html_url":"https://github.com/wrnx","followers_url":"https://api.github.com/users/wrnx/followers","following_url":"https://api.github.com/users/wrnx/following{/other_user}","gists_url":"https://api.github.com/users/wrnx/gists{/gist_id}","starred_url":"https://api.github.com/users/wrnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrnx/subscriptions","organizations_url":"https://api.github.com/users/wrnx/orgs","repos_url":"https://api.github.com/users/wrnx/repos","events_url":"https://api.github.com/users/wrnx/events{/privacy}","received_events_url":"https://api.github.com/users/wrnx/received_events","type":"User","site_admin":false},"repo":{"id":33046039,"name":"wp-cli","full_name":"wrnx/wp-cli","owner":{"login":"wrnx","id":6766073,"avatar_url":"https://avatars.githubusercontent.com/u/6766073?v=3","gravatar_id":"","url":"https://api.github.com/users/wrnx","html_url":"https://github.com/wrnx","followers_url":"https://api.github.com/users/wrnx/followers","following_url":"https://api.github.com/users/wrnx/following{/other_user}","gists_url":"https://api.github.com/users/wrnx/gists{/gist_id}","starred_url":"https://api.github.com/users/wrnx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrnx/subscriptions","organizations_url":"https://api.github.com/users/wrnx/orgs","repos_url":"https://api.github.com/users/wrnx/repos","events_url":"https://api.github.com/users/wrnx/events{/privacy}","received_events_url":"https://api.github.com/users/wrnx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrnx/wp-cli","description":"A command line interface for WordPress","fork":true,"url":"https://api.github.com/repos/wrnx/wp-cli","forks_url":"https://api.github.com/repos/wrnx/wp-cli/forks","keys_url":"https://api.github.com/repos/wrnx/wp-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrnx/wp-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrnx/wp-cli/teams","hooks_url":"https://api.github.com/repos/wrnx/wp-cli/hooks","issue_events_url":"https://api.github.com/repos/wrnx/wp-cli/issues/events{/number}","events_url":"https://api.github.com/repos/wrnx/wp-cli/events","assignees_url":"https://api.github.com/repos/wrnx/wp-cli/assignees{/user}","branches_url":"https://api.github.com/repos/wrnx/wp-cli/branches{/branch}","tags_url":"https://api.github.com/repos/wrnx/wp-cli/tags","blobs_url":"https://api.github.com/repos/wrnx/wp-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrnx/wp-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrnx/wp-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrnx/wp-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrnx/wp-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/wrnx/wp-cli/languages","stargazers_url":"https://api.github.com/repos/wrnx/wp-cli/stargazers","contributors_url":"https://api.github.com/repos/wrnx/wp-cli/contributors","subscribers_url":"https://api.github.com/repos/wrnx/wp-cli/subscribers","subscription_url":"https://api.github.com/repos/wrnx/wp-cli/subscription","commits_url":"https://api.github.com/repos/wrnx/wp-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrnx/wp-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrnx/wp-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrnx/wp-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrnx/wp-cli/contents/{+path}","compare_url":"https://api.github.com/repos/wrnx/wp-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrnx/wp-cli/merges","archive_url":"https://api.github.com/repos/wrnx/wp-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrnx/wp-cli/downloads","issues_url":"https://api.github.com/repos/wrnx/wp-cli/issues{/number}","pulls_url":"https://api.github.com/repos/wrnx/wp-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/wrnx/wp-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/wrnx/wp-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrnx/wp-cli/labels{/name}","releases_url":"https://api.github.com/repos/wrnx/wp-cli/releases{/id}","created_at":"2015-03-28T18:54:42Z","updated_at":"2015-04-06T04:20:32Z","pushed_at":"2015-04-06T22:31:21Z","git_url":"git://github.com/wrnx/wp-cli.git","ssh_url":"git@github.com:wrnx/wp-cli.git","clone_url":"https://github.com/wrnx/wp-cli.git","svn_url":"https://github.com/wrnx/wp-cli","homepage":"http://wp-cli.org/","size":5943,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wp-cli:master","ref":"master","sha":"66667278411a6c50e55808066e749b78181bb997","user":{"login":"wp-cli","id":1570774,"avatar_url":"https://avatars.githubusercontent.com/u/1570774?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":2360755,"name":"wp-cli","full_name":"wp-cli/wp-cli","owner":{"login":"wp-cli","id":1570774,"avatar_url":"https://avatars.githubusercontent.com/u/1570774?v=3","gravatar_id":"","url":"https://api.github.com/users/wp-cli","html_url":"https://github.com/wp-cli","followers_url":"https://api.github.com/users/wp-cli/followers","following_url":"https://api.github.com/users/wp-cli/following{/other_user}","gists_url":"https://api.github.com/users/wp-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/wp-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wp-cli/subscriptions","organizations_url":"https://api.github.com/users/wp-cli/orgs","repos_url":"https://api.github.com/users/wp-cli/repos","events_url":"https://api.github.com/users/wp-cli/events{/privacy}","received_events_url":"https://api.github.com/users/wp-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wp-cli/wp-cli","description":"A command line interface for WordPress","fork":false,"url":"https://api.github.com/repos/wp-cli/wp-cli","forks_url":"https://api.github.com/repos/wp-cli/wp-cli/forks","keys_url":"https://api.github.com/repos/wp-cli/wp-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wp-cli/wp-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wp-cli/wp-cli/teams","hooks_url":"https://api.github.com/repos/wp-cli/wp-cli/hooks","issue_events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/events{/number}","events_url":"https://api.github.com/repos/wp-cli/wp-cli/events","assignees_url":"https://api.github.com/repos/wp-cli/wp-cli/assignees{/user}","branches_url":"https://api.github.com/repos/wp-cli/wp-cli/branches{/branch}","tags_url":"https://api.github.com/repos/wp-cli/wp-cli/tags","blobs_url":"https://api.github.com/repos/wp-cli/wp-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wp-cli/wp-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wp-cli/wp-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/wp-cli/wp-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wp-cli/wp-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/wp-cli/wp-cli/languages","stargazers_url":"https://api.github.com/repos/wp-cli/wp-cli/stargazers","contributors_url":"https://api.github.com/repos/wp-cli/wp-cli/contributors","subscribers_url":"https://api.github.com/repos/wp-cli/wp-cli/subscribers","subscription_url":"https://api.github.com/repos/wp-cli/wp-cli/subscription","commits_url":"https://api.github.com/repos/wp-cli/wp-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/wp-cli/wp-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/wp-cli/wp-cli/contents/{+path}","compare_url":"https://api.github.com/repos/wp-cli/wp-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wp-cli/wp-cli/merges","archive_url":"https://api.github.com/repos/wp-cli/wp-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wp-cli/wp-cli/downloads","issues_url":"https://api.github.com/repos/wp-cli/wp-cli/issues{/number}","pulls_url":"https://api.github.com/repos/wp-cli/wp-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/wp-cli/wp-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/wp-cli/wp-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/labels{/name}","releases_url":"https://api.github.com/repos/wp-cli/wp-cli/releases{/id}","created_at":"2011-09-10T12:51:59Z","updated_at":"2015-04-05T18:42:46Z","pushed_at":"2015-04-06T22:31:22Z","git_url":"git://github.com/wp-cli/wp-cli.git","ssh_url":"git@github.com:wp-cli/wp-cli.git","clone_url":"https://github.com/wp-cli/wp-cli.git","svn_url":"https://github.com/wp-cli/wp-cli","homepage":"http://wp-cli.org/","size":17107,"stargazers_count":1970,"watchers_count":1970,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":415,"mirror_url":null,"open_issues_count":150,"forks":415,"open_issues":150,"watchers":1970,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731"},"html":{"href":"https://github.com/wp-cli/wp-cli/pull/1731"},"issue":{"href":"https://api.github.com/repos/wp-cli/wp-cli/issues/1731"},"comments":{"href":"https://api.github.com/repos/wp-cli/wp-cli/issues/1731/comments"},"review_comments":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731/comments"},"review_comment":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wp-cli/wp-cli/pulls/1731/commits"},"statuses":{"href":"https://api.github.com/repos/wp-cli/wp-cli/statuses/6b95e929a009324c20ccf3fa8d961e72e8131864"}}}}