{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/gettext/pulls/comments/31604620","id":31604620,"diff_hunk":"@@ -0,0 +1,19 @@\n+defmodule Mix.Tasks.Gettext.Extract do\n+  use Mix.Task\n+  @recursive true\n+\n+  @shortdoc \"Extracts translations\"\n+\n+  def run(_args) do\n+    Mix.shell.info \"About to extract Gettext translation from source. Recompiling...\"\n+\n+    Gettext.Extractor.setup_for_extraction\n+    force_compile\n+    Gettext.Extractor.process_results\n+  end\n+\n+  defp force_compile do\n+    Enum.each ~w(compile compile.all compile.elixir), &Mix.Task.reenable/1","path":"lib/mix/tasks/gettext.extract.ex","position":16,"original_position":16,"commit_id":"d53ccad473c0d3b1673d2dc3476803b505fdb07b","original_commit_id":"d53ccad473c0d3b1673d2dc3476803b505fdb07b","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"body":"Let's go with extract then!","created_at":"2015-06-03T08:56:26Z","updated_at":"2015-06-03T08:56:26Z","html_url":"https://github.com/elixir-lang/gettext/pull/27#discussion_r31604620","pull_request_url":"https://api.github.com/repos/elixir-lang/gettext/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/comments/31604620"},"html":{"href":"https://github.com/elixir-lang/gettext/pull/27#discussion_r31604620"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/gettext/pulls/27","id":36656740,"html_url":"https://github.com/elixir-lang/gettext/pull/27","diff_url":"https://github.com/elixir-lang/gettext/pull/27.diff","patch_url":"https://github.com/elixir-lang/gettext/pull/27.patch","issue_url":"https://api.github.com/repos/elixir-lang/gettext/issues/27","number":27,"state":"open","locked":false,"title":"Extracting translations","user":{"login":"whatyouhide","id":3890250,"avatar_url":"https://avatars.githubusercontent.com/u/3890250?v=3","gravatar_id":"","url":"https://api.github.com/users/whatyouhide","html_url":"https://github.com/whatyouhide","followers_url":"https://api.github.com/users/whatyouhide/followers","following_url":"https://api.github.com/users/whatyouhide/following{/other_user}","gists_url":"https://api.github.com/users/whatyouhide/gists{/gist_id}","starred_url":"https://api.github.com/users/whatyouhide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whatyouhide/subscriptions","organizations_url":"https://api.github.com/users/whatyouhide/orgs","repos_url":"https://api.github.com/users/whatyouhide/repos","events_url":"https://api.github.com/users/whatyouhide/events{/privacy}","received_events_url":"https://api.github.com/users/whatyouhide/received_events","type":"User","site_admin":false},"body":"@josevalim this should be a pretty complete implementation of translation extraction. I left a few comments throughout the commits to discuss a couple of things :)\r\n\r\n(docs for the `mix gettext.extract` task are still missing)","created_at":"2015-06-01T18:32:55Z","updated_at":"2015-06-03T08:56:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2158715d52e6444749b49edf1c71a9168353f4fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/gettext/pulls/27/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/gettext/pulls/27/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/gettext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/gettext/issues/27/comments","statuses_url":"https://api.github.com/repos/elixir-lang/gettext/statuses/d53ccad473c0d3b1673d2dc3476803b505fdb07b","head":{"label":"elixir-lang:al-collecting-translations","ref":"al-collecting-translations","sha":"d53ccad473c0d3b1673d2dc3476803b505fdb07b","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":31918746,"name":"gettext","full_name":"elixir-lang/gettext","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/gettext","description":"gettext-based implementation for Elixir","fork":false,"url":"https://api.github.com/repos/elixir-lang/gettext","forks_url":"https://api.github.com/repos/elixir-lang/gettext/forks","keys_url":"https://api.github.com/repos/elixir-lang/gettext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/gettext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/gettext/teams","hooks_url":"https://api.github.com/repos/elixir-lang/gettext/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/gettext/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/gettext/events","assignees_url":"https://api.github.com/repos/elixir-lang/gettext/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/gettext/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/gettext/tags","blobs_url":"https://api.github.com/repos/elixir-lang/gettext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/gettext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/gettext/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/gettext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/gettext/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/gettext/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/gettext/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/gettext/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/gettext/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/gettext/subscription","commits_url":"https://api.github.com/repos/elixir-lang/gettext/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/gettext/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/gettext/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/gettext/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/gettext/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/gettext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/gettext/merges","archive_url":"https://api.github.com/repos/elixir-lang/gettext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/gettext/downloads","issues_url":"https://api.github.com/repos/elixir-lang/gettext/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/gettext/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/gettext/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/gettext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/gettext/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/gettext/releases{/id}","created_at":"2015-03-09T19:41:44Z","updated_at":"2015-05-18T02:47:28Z","pushed_at":"2015-06-01T18:32:56Z","git_url":"git://github.com/elixir-lang/gettext.git","ssh_url":"git@github.com:elixir-lang/gettext.git","clone_url":"https://github.com/elixir-lang/gettext.git","svn_url":"https://github.com/elixir-lang/gettext","homepage":null,"size":780,"stargazers_count":10,"watchers_count":10,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":10,"default_branch":"master"}},"base":{"label":"elixir-lang:master","ref":"master","sha":"e2e3d42edd2a8fa5aa2deada2e5779f122594e71","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":31918746,"name":"gettext","full_name":"elixir-lang/gettext","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/gettext","description":"gettext-based implementation for Elixir","fork":false,"url":"https://api.github.com/repos/elixir-lang/gettext","forks_url":"https://api.github.com/repos/elixir-lang/gettext/forks","keys_url":"https://api.github.com/repos/elixir-lang/gettext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/gettext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/gettext/teams","hooks_url":"https://api.github.com/repos/elixir-lang/gettext/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/gettext/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/gettext/events","assignees_url":"https://api.github.com/repos/elixir-lang/gettext/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/gettext/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/gettext/tags","blobs_url":"https://api.github.com/repos/elixir-lang/gettext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/gettext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/gettext/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/gettext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/gettext/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/gettext/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/gettext/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/gettext/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/gettext/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/gettext/subscription","commits_url":"https://api.github.com/repos/elixir-lang/gettext/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/gettext/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/gettext/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/gettext/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/gettext/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/gettext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/gettext/merges","archive_url":"https://api.github.com/repos/elixir-lang/gettext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/gettext/downloads","issues_url":"https://api.github.com/repos/elixir-lang/gettext/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/gettext/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/gettext/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/gettext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/gettext/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/gettext/releases{/id}","created_at":"2015-03-09T19:41:44Z","updated_at":"2015-05-18T02:47:28Z","pushed_at":"2015-06-01T18:32:56Z","git_url":"git://github.com/elixir-lang/gettext.git","ssh_url":"git@github.com:elixir-lang/gettext.git","clone_url":"https://github.com/elixir-lang/gettext.git","svn_url":"https://github.com/elixir-lang/gettext","homepage":null,"size":780,"stargazers_count":10,"watchers_count":10,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/27"},"html":{"href":"https://github.com/elixir-lang/gettext/pull/27"},"issue":{"href":"https://api.github.com/repos/elixir-lang/gettext/issues/27"},"comments":{"href":"https://api.github.com/repos/elixir-lang/gettext/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/gettext/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/gettext/statuses/d53ccad473c0d3b1673d2dc3476803b505fdb07b"}}}}