{"action":"created","comment":{"url":"https://api.github.com/repos/akeneo/nelson/pulls/comments/60844264","id":60844264,"diff_hunk":"@@ -43,30 +49,62 @@ protected function getTime()\n     /**\n      * Write a processing message\n      *\n-     * @param string $comment\n+     * @param string   $message\n+     * @param string[] $messageParams\n      */\n-    protected function writeProcessing($comment)\n+    protected function writeProcessing($message, $messageParams = [])\n     {\n-        $this->output->writeln(sprintf('%s <comment>%s<blink>...</blink></comment>', $this->getTime(), $comment));\n+        $this->output->writeln(sprintf(\n+            '%s <comment>%s<blink>...</blink></comment>',\n+            $this->getTime(),\n+            $this->translator->trans($message, $messageParams)\n+        ));\n     }\n \n     /**\n      * Write an info message\n      *\n-     * @param $info\n+     * @param string   $message\n+     * @param string[] $messageParams\n      */\n-    protected function writeInfo($info)\n+    protected function writeInfo($message, $messageParams = [])\n     {\n-        $this->output->writeln(sprintf('%s   - <comment>%s</comment>', $this->getTime(), $info));\n+        $this->output->writeln(sprintf(\n+            '%s   - <comment>%s</comment>',\n+            $this->getTime(),\n+            $this->translator->trans($message, $messageParams)\n+        ));\n     }\n \n     /**\n      * Write a success message\n      *\n-     * @param string $success\n+     * @param string   $message\n+     * @param string[] $messageParams\n+     */\n+    protected function writeSuccess($message, $messageParams = [])\n+    {\n+        $this->output->writeln(sprintf(\n+            '%s <info>%s</info>',\n+            $this->getTime(),\n+            $this->translator->trans($message, $messageParams)\n+        ));\n+    }\n+\n+    /**\n+     * Surround translation keys with '%' and bold values\n+     *\n+     * @param $params\n+     *\n+     * @return array\n      */\n-    protected function writeSuccess($success)\n+    protected function getTranslationParams($params)","path":"src/Akeneo/System/AbstractConsoleLogger.php","position":89,"original_position":89,"commit_id":"f3cb47dad5a603f2689f1868ec76e77cc9f1fbbf","original_commit_id":"f3cb47dad5a603f2689f1868ec76e77cc9f1fbbf","user":{"login":"nidup","id":2104359,"avatar_url":"https://avatars.githubusercontent.com/u/2104359?v=3","gravatar_id":"","url":"https://api.github.com/users/nidup","html_url":"https://github.com/nidup","followers_url":"https://api.github.com/users/nidup/followers","following_url":"https://api.github.com/users/nidup/following{/other_user}","gists_url":"https://api.github.com/users/nidup/gists{/gist_id}","starred_url":"https://api.github.com/users/nidup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nidup/subscriptions","organizations_url":"https://api.github.com/users/nidup/orgs","repos_url":"https://api.github.com/users/nidup/repos","events_url":"https://api.github.com/users/nidup/events{/privacy}","received_events_url":"https://api.github.com/users/nidup/received_events","type":"User","site_admin":false},"body":"getTranslationParams -> prepareTranslationParams ?","created_at":"2016-04-24T13:09:33Z","updated_at":"2016-04-24T13:09:33Z","html_url":"https://github.com/akeneo/nelson/pull/14#discussion_r60844264","pull_request_url":"https://api.github.com/repos/akeneo/nelson/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/comments/60844264"},"html":{"href":"https://github.com/akeneo/nelson/pull/14#discussion_r60844264"},"pull_request":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/akeneo/nelson/pulls/14","id":67634473,"html_url":"https://github.com/akeneo/nelson/pull/14","diff_url":"https://github.com/akeneo/nelson/pull/14.diff","patch_url":"https://github.com/akeneo/nelson/pull/14.patch","issue_url":"https://api.github.com/repos/akeneo/nelson/issues/14","number":14,"state":"open","locked":false,"title":"[WIP] Translate Nelson messages","user":{"login":"pierallard","id":1590933,"avatar_url":"https://avatars.githubusercontent.com/u/1590933?v=3","gravatar_id":"","url":"https://api.github.com/users/pierallard","html_url":"https://github.com/pierallard","followers_url":"https://api.github.com/users/pierallard/followers","following_url":"https://api.github.com/users/pierallard/following{/other_user}","gists_url":"https://api.github.com/users/pierallard/gists{/gist_id}","starred_url":"https://api.github.com/users/pierallard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierallard/subscriptions","organizations_url":"https://api.github.com/users/pierallard/orgs","repos_url":"https://api.github.com/users/pierallard/repos","events_url":"https://api.github.com/users/pierallard/events{/privacy}","received_events_url":"https://api.github.com/users/pierallard/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-24T11:19:28Z","updated_at":"2016-04-24T13:09:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9921e33bfdb705bae04f1af5f1e6278bad74e367","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akeneo/nelson/pulls/14/commits","review_comments_url":"https://api.github.com/repos/akeneo/nelson/pulls/14/comments","review_comment_url":"https://api.github.com/repos/akeneo/nelson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akeneo/nelson/issues/14/comments","statuses_url":"https://api.github.com/repos/akeneo/nelson/statuses/f3cb47dad5a603f2689f1868ec76e77cc9f1fbbf","head":{"label":"akeneo:i18n","ref":"i18n","sha":"f3cb47dad5a603f2689f1868ec76e77cc9f1fbbf","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":56386724,"name":"nelson","full_name":"akeneo/nelson","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/nelson","description":"Command based translation workflow between Crowdin and Github","fork":false,"url":"https://api.github.com/repos/akeneo/nelson","forks_url":"https://api.github.com/repos/akeneo/nelson/forks","keys_url":"https://api.github.com/repos/akeneo/nelson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/nelson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/nelson/teams","hooks_url":"https://api.github.com/repos/akeneo/nelson/hooks","issue_events_url":"https://api.github.com/repos/akeneo/nelson/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/nelson/events","assignees_url":"https://api.github.com/repos/akeneo/nelson/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/nelson/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/nelson/tags","blobs_url":"https://api.github.com/repos/akeneo/nelson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/nelson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/nelson/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/nelson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/nelson/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/nelson/languages","stargazers_url":"https://api.github.com/repos/akeneo/nelson/stargazers","contributors_url":"https://api.github.com/repos/akeneo/nelson/contributors","subscribers_url":"https://api.github.com/repos/akeneo/nelson/subscribers","subscription_url":"https://api.github.com/repos/akeneo/nelson/subscription","commits_url":"https://api.github.com/repos/akeneo/nelson/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/nelson/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/nelson/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/nelson/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/nelson/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/nelson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/nelson/merges","archive_url":"https://api.github.com/repos/akeneo/nelson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/nelson/downloads","issues_url":"https://api.github.com/repos/akeneo/nelson/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/nelson/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/nelson/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/nelson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/nelson/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/nelson/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/nelson/deployments","created_at":"2016-04-16T14:03:11Z","updated_at":"2016-04-20T00:41:00Z","pushed_at":"2016-04-24T13:05:30Z","git_url":"git://github.com/akeneo/nelson.git","ssh_url":"git@github.com:akeneo/nelson.git","clone_url":"https://github.com/akeneo/nelson.git","svn_url":"https://github.com/akeneo/nelson","homepage":null,"size":609,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":12,"default_branch":"master"}},"base":{"label":"akeneo:master","ref":"master","sha":"2ed91ca26727cfd6e2bc117844b743b5adfe6037","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":56386724,"name":"nelson","full_name":"akeneo/nelson","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/nelson","description":"Command based translation workflow between Crowdin and Github","fork":false,"url":"https://api.github.com/repos/akeneo/nelson","forks_url":"https://api.github.com/repos/akeneo/nelson/forks","keys_url":"https://api.github.com/repos/akeneo/nelson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/nelson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/nelson/teams","hooks_url":"https://api.github.com/repos/akeneo/nelson/hooks","issue_events_url":"https://api.github.com/repos/akeneo/nelson/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/nelson/events","assignees_url":"https://api.github.com/repos/akeneo/nelson/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/nelson/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/nelson/tags","blobs_url":"https://api.github.com/repos/akeneo/nelson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/nelson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/nelson/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/nelson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/nelson/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/nelson/languages","stargazers_url":"https://api.github.com/repos/akeneo/nelson/stargazers","contributors_url":"https://api.github.com/repos/akeneo/nelson/contributors","subscribers_url":"https://api.github.com/repos/akeneo/nelson/subscribers","subscription_url":"https://api.github.com/repos/akeneo/nelson/subscription","commits_url":"https://api.github.com/repos/akeneo/nelson/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/nelson/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/nelson/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/nelson/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/nelson/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/nelson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/nelson/merges","archive_url":"https://api.github.com/repos/akeneo/nelson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/nelson/downloads","issues_url":"https://api.github.com/repos/akeneo/nelson/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/nelson/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/nelson/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/nelson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/nelson/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/nelson/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/nelson/deployments","created_at":"2016-04-16T14:03:11Z","updated_at":"2016-04-20T00:41:00Z","pushed_at":"2016-04-24T13:05:30Z","git_url":"git://github.com/akeneo/nelson.git","ssh_url":"git@github.com:akeneo/nelson.git","clone_url":"https://github.com/akeneo/nelson.git","svn_url":"https://github.com/akeneo/nelson","homepage":null,"size":609,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/14"},"html":{"href":"https://github.com/akeneo/nelson/pull/14"},"issue":{"href":"https://api.github.com/repos/akeneo/nelson/issues/14"},"comments":{"href":"https://api.github.com/repos/akeneo/nelson/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akeneo/nelson/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/akeneo/nelson/statuses/f3cb47dad5a603f2689f1868ec76e77cc9f1fbbf"}}}}