{"action":"created","comment":{"url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/comments/196770933","pull_request_review_id":130385098,"id":196770933,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Njc3MDkzMw==","diff_hunk":"@@ -18,6 +18,9 @@ drupal:\n   post_install:\n     # @todo: We set theme as default here as it does not happen at installation. Fix this.\n     - \"./vendor/bin/drush config-set system.theme default europa_demo_theme -y\"\n+    - \"./vendor/bin/drush en -y drush_language\"\n+    - \"./vendor/bin/drush language-import modules/custom/europa_demo_core/translations/fr.po\"\n+    - \"./vendor/bin/drush language-import modules/custom/europa_demo_core/translations/it.po\"","path":"runner.yml.dist","position":6,"original_position":6,"commit_id":"344603cbb5dbf3be9a6d648648edfd6bcf434f46","original_commit_id":"344603cbb5dbf3be9a6d648648edfd6bcf434f46","user":{"login":"ademarco","id":153362,"node_id":"MDQ6VXNlcjE1MzM2Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/153362?v=4","gravatar_id":"","url":"https://api.github.com/users/ademarco","html_url":"https://github.com/ademarco","followers_url":"https://api.github.com/users/ademarco/followers","following_url":"https://api.github.com/users/ademarco/following{/other_user}","gists_url":"https://api.github.com/users/ademarco/gists{/gist_id}","starred_url":"https://api.github.com/users/ademarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ademarco/subscriptions","organizations_url":"https://api.github.com/users/ademarco/orgs","repos_url":"https://api.github.com/users/ademarco/repos","events_url":"https://api.github.com/users/ademarco/events{/privacy}","received_events_url":"https://api.github.com/users/ademarco/received_events","type":"User","site_admin":false},"body":"Shall we maybe make a Task Runner command for this? Something like:\r\n\r\n```\r\n  drupal:import-interface-translations:\r\n     - \"./vendor/bin/drush language-import modules/custom/europa_demo_core/translations/fr.po\"\r\n     - \"./vendor/bin/drush language-import modules/custom/europa_demo_core/translations/it.po\"\r\n```\r\nThen we can use this in the `post_install`:\r\n```\r\n./vendor/bin/run drupal:import-interface-translations\r\n```\r\nWe should also add a section about it in the README.md.","created_at":"2018-06-20T13:13:30Z","updated_at":"2018-06-20T13:13:44Z","html_url":"https://github.com/ec-europa/europa-demo/pull/11#discussion_r196770933","pull_request_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/comments/196770933"},"html":{"href":"https://github.com/ec-europa/europa-demo/pull/11#discussion_r196770933"},"pull_request":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11","id":195980556,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTgwNTU2","html_url":"https://github.com/ec-europa/europa-demo/pull/11","diff_url":"https://github.com/ec-europa/europa-demo/pull/11.diff","patch_url":"https://github.com/ec-europa/europa-demo/pull/11.patch","issue_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/11","number":11,"state":"open","locked":false,"title":"OPENEUROPA-640 : Import interface translations","user":{"login":"Medi4tor","id":2235848,"node_id":"MDQ6VXNlcjIyMzU4NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2235848?v=4","gravatar_id":"","url":"https://api.github.com/users/Medi4tor","html_url":"https://github.com/Medi4tor","followers_url":"https://api.github.com/users/Medi4tor/followers","following_url":"https://api.github.com/users/Medi4tor/following{/other_user}","gists_url":"https://api.github.com/users/Medi4tor/gists{/gist_id}","starred_url":"https://api.github.com/users/Medi4tor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medi4tor/subscriptions","organizations_url":"https://api.github.com/users/Medi4tor/orgs","repos_url":"https://api.github.com/users/Medi4tor/repos","events_url":"https://api.github.com/users/Medi4tor/events{/privacy}","received_events_url":"https://api.github.com/users/Medi4tor/received_events","type":"User","site_admin":false},"body":"## OPENEUROPA-640\r\n\r\n### Description\r\n\r\nMake sure translations can be exported (in po) and imported at installation (in hook_install)\r\n\r\n### Change log\r\n\r\n- Added: \r\nfeatures/translation.feature\r\nmodules/europa_demo_core/translations/fr.po\r\nmodules/europa_demo_core/translations/it.po\r\n- Changed: \r\nmodules/europa_demo_core/europa_demo_core.info.yml\r\n\r\n### Commands\r\nnothing","created_at":"2018-06-19T22:57:33Z","updated_at":"2018-06-20T13:13:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4de62164b8b78d9e80d8e1b60904a3bc80c907f0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/11/comments","statuses_url":"https://api.github.com/repos/ec-europa/europa-demo/statuses/344603cbb5dbf3be9a6d648648edfd6bcf434f46","head":{"label":"ec-europa:OPENEUROPA-640","ref":"OPENEUROPA-640","sha":"344603cbb5dbf3be9a6d648648edfd6bcf434f46","user":{"login":"ec-europa","id":10885565,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODg1NTY1","avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":137314058,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczMTQwNTg=","name":"europa-demo","full_name":"ec-europa/europa-demo","owner":{"login":"ec-europa","id":10885565,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODg1NTY1","avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/europa-demo","description":"Europa demo site, based on OpenEuropa components.","fork":false,"url":"https://api.github.com/repos/ec-europa/europa-demo","forks_url":"https://api.github.com/repos/ec-europa/europa-demo/forks","keys_url":"https://api.github.com/repos/ec-europa/europa-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/europa-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/europa-demo/teams","hooks_url":"https://api.github.com/repos/ec-europa/europa-demo/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/europa-demo/events","assignees_url":"https://api.github.com/repos/ec-europa/europa-demo/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/europa-demo/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/europa-demo/tags","blobs_url":"https://api.github.com/repos/ec-europa/europa-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/europa-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/europa-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/europa-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/europa-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/europa-demo/languages","stargazers_url":"https://api.github.com/repos/ec-europa/europa-demo/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/europa-demo/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/europa-demo/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/europa-demo/subscription","commits_url":"https://api.github.com/repos/ec-europa/europa-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/europa-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/europa-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/europa-demo/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/europa-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/europa-demo/merges","archive_url":"https://api.github.com/repos/ec-europa/europa-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/europa-demo/downloads","issues_url":"https://api.github.com/repos/ec-europa/europa-demo/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/europa-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/europa-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/europa-demo/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/europa-demo/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/europa-demo/deployments","created_at":"2018-06-14T06:12:00Z","updated_at":"2018-06-20T11:12:52Z","pushed_at":"2018-06-20T12:50:19Z","git_url":"git://github.com/ec-europa/europa-demo.git","ssh_url":"git@github.com:ec-europa/europa-demo.git","clone_url":"https://github.com/ec-europa/europa-demo.git","svn_url":"https://github.com/ec-europa/europa-demo","homepage":null,"size":4230,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1","node_id":"MDc6TGljZW5zZTI0"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ec-europa:master","ref":"master","sha":"f374f035bb775dd95d41e650a30c821ac4db71e8","user":{"login":"ec-europa","id":10885565,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODg1NTY1","avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":137314058,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczMTQwNTg=","name":"europa-demo","full_name":"ec-europa/europa-demo","owner":{"login":"ec-europa","id":10885565,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwODg1NTY1","avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/europa-demo","description":"Europa demo site, based on OpenEuropa components.","fork":false,"url":"https://api.github.com/repos/ec-europa/europa-demo","forks_url":"https://api.github.com/repos/ec-europa/europa-demo/forks","keys_url":"https://api.github.com/repos/ec-europa/europa-demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/europa-demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/europa-demo/teams","hooks_url":"https://api.github.com/repos/ec-europa/europa-demo/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/europa-demo/events","assignees_url":"https://api.github.com/repos/ec-europa/europa-demo/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/europa-demo/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/europa-demo/tags","blobs_url":"https://api.github.com/repos/ec-europa/europa-demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/europa-demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/europa-demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/europa-demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/europa-demo/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/europa-demo/languages","stargazers_url":"https://api.github.com/repos/ec-europa/europa-demo/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/europa-demo/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/europa-demo/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/europa-demo/subscription","commits_url":"https://api.github.com/repos/ec-europa/europa-demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/europa-demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/europa-demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/europa-demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/europa-demo/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/europa-demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/europa-demo/merges","archive_url":"https://api.github.com/repos/ec-europa/europa-demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/europa-demo/downloads","issues_url":"https://api.github.com/repos/ec-europa/europa-demo/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/europa-demo/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/europa-demo/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/europa-demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/europa-demo/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/europa-demo/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/europa-demo/deployments","created_at":"2018-06-14T06:12:00Z","updated_at":"2018-06-20T11:12:52Z","pushed_at":"2018-06-20T12:50:19Z","git_url":"git://github.com/ec-europa/europa-demo.git","ssh_url":"git@github.com:ec-europa/europa-demo.git","clone_url":"https://github.com/ec-europa/europa-demo.git","svn_url":"https://github.com/ec-europa/europa-demo","homepage":null,"size":4230,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1","node_id":"MDc6TGljZW5zZTI0"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11"},"html":{"href":"https://github.com/ec-europa/europa-demo/pull/11"},"issue":{"href":"https://api.github.com/repos/ec-europa/europa-demo/issues/11"},"comments":{"href":"https://api.github.com/repos/ec-europa/europa-demo/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ec-europa/europa-demo/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ec-europa/europa-demo/statuses/344603cbb5dbf3be9a6d648648edfd6bcf434f46"}},"author_association":"NONE"}}
{"actor":{"display_login":"ademarco"}}