{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/rmp-translate/pulls/comments/41740632","id":41740632,"diff_hunk":"@@ -0,0 +1,8 @@\n+#!/bin/bash\n+\n+BASEDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && cd .. && pwd )\"\n+\n+for f in $BASEDIR/src/RMP/Translate/lang/*/*; do","path":"scripts/alphabetiseAllTranslations.sh","position":5,"original_position":5,"commit_id":"042579c934582b101ad1b8d29fa98db316dba90e","original_commit_id":"042579c934582b101ad1b8d29fa98db316dba90e","user":{"login":"BjornTwachtmann","id":8199742,"avatar_url":"https://avatars.githubusercontent.com/u/8199742?v=3","gravatar_id":"","url":"https://api.github.com/users/BjornTwachtmann","html_url":"https://github.com/BjornTwachtmann","followers_url":"https://api.github.com/users/BjornTwachtmann/followers","following_url":"https://api.github.com/users/BjornTwachtmann/following{/other_user}","gists_url":"https://api.github.com/users/BjornTwachtmann/gists{/gist_id}","starred_url":"https://api.github.com/users/BjornTwachtmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BjornTwachtmann/subscriptions","organizations_url":"https://api.github.com/users/BjornTwachtmann/orgs","repos_url":"https://api.github.com/users/BjornTwachtmann/repos","events_url":"https://api.github.com/users/BjornTwachtmann/events{/privacy}","received_events_url":"https://api.github.com/users/BjornTwachtmann/received_events","type":"User","site_admin":false},"body":"Rather than running this on invidiual language files, I would sort the template.pot and then run updateTranslationsFromTemplate.sh to cascade to the individual language files. It's likely to be more reliable and avoids anything getting out of sync due to errors/incosistencies in the sorting script. ","created_at":"2015-10-12T09:56:36Z","updated_at":"2015-10-12T09:56:36Z","html_url":"https://github.com/bbc/rmp-translate/pull/4#discussion_r41740632","pull_request_url":"https://api.github.com/repos/bbc/rmp-translate/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/comments/41740632"},"html":{"href":"https://github.com/bbc/rmp-translate/pull/4#discussion_r41740632"},"pull_request":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/rmp-translate/pulls/4","id":47145590,"html_url":"https://github.com/bbc/rmp-translate/pull/4","diff_url":"https://github.com/bbc/rmp-translate/pull/4.diff","patch_url":"https://github.com/bbc/rmp-translate/pull/4.patch","issue_url":"https://api.github.com/repos/bbc/rmp-translate/issues/4","number":4,"state":"open","locked":false,"title":"Alphabetiser","user":{"login":"BPScott","id":227292,"avatar_url":"https://avatars.githubusercontent.com/u/227292?v=3","gravatar_id":"","url":"https://api.github.com/users/BPScott","html_url":"https://github.com/BPScott","followers_url":"https://api.github.com/users/BPScott/followers","following_url":"https://api.github.com/users/BPScott/following{/other_user}","gists_url":"https://api.github.com/users/BPScott/gists{/gist_id}","starred_url":"https://api.github.com/users/BPScott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BPScott/subscriptions","organizations_url":"https://api.github.com/users/BPScott/orgs","repos_url":"https://api.github.com/users/BPScott/repos","events_url":"https://api.github.com/users/BPScott/events{/privacy}","received_events_url":"https://api.github.com/users/BPScott/received_events","type":"User","site_admin":false},"body":"Allow bulk alphabetizing of the translation files, and make sure everything is alphabetized.","created_at":"2015-10-08T12:22:54Z","updated_at":"2015-10-12T09:56:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3a9d8b14acfc6390feaa9ea25d63e728a5f3c20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbc/rmp-translate/pulls/4/commits","review_comments_url":"https://api.github.com/repos/bbc/rmp-translate/pulls/4/comments","review_comment_url":"https://api.github.com/repos/bbc/rmp-translate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/rmp-translate/issues/4/comments","statuses_url":"https://api.github.com/repos/bbc/rmp-translate/statuses/042579c934582b101ad1b8d29fa98db316dba90e","head":{"label":"bbc:alphabetiser","ref":"alphabetiser","sha":"042579c934582b101ad1b8d29fa98db316dba90e","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":36441038,"name":"rmp-translate","full_name":"bbc/rmp-translate","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/rmp-translate","description":"A small composer library for translations in /programmes and Amen","fork":false,"url":"https://api.github.com/repos/bbc/rmp-translate","forks_url":"https://api.github.com/repos/bbc/rmp-translate/forks","keys_url":"https://api.github.com/repos/bbc/rmp-translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/rmp-translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/rmp-translate/teams","hooks_url":"https://api.github.com/repos/bbc/rmp-translate/hooks","issue_events_url":"https://api.github.com/repos/bbc/rmp-translate/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/rmp-translate/events","assignees_url":"https://api.github.com/repos/bbc/rmp-translate/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/rmp-translate/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/rmp-translate/tags","blobs_url":"https://api.github.com/repos/bbc/rmp-translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/rmp-translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/rmp-translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/rmp-translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/rmp-translate/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/rmp-translate/languages","stargazers_url":"https://api.github.com/repos/bbc/rmp-translate/stargazers","contributors_url":"https://api.github.com/repos/bbc/rmp-translate/contributors","subscribers_url":"https://api.github.com/repos/bbc/rmp-translate/subscribers","subscription_url":"https://api.github.com/repos/bbc/rmp-translate/subscription","commits_url":"https://api.github.com/repos/bbc/rmp-translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/rmp-translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/rmp-translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/rmp-translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/rmp-translate/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/rmp-translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/rmp-translate/merges","archive_url":"https://api.github.com/repos/bbc/rmp-translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/rmp-translate/downloads","issues_url":"https://api.github.com/repos/bbc/rmp-translate/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/rmp-translate/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/rmp-translate/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/rmp-translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/rmp-translate/labels{/name}","releases_url":"https://api.github.com/repos/bbc/rmp-translate/releases{/id}","created_at":"2015-05-28T13:43:17Z","updated_at":"2015-06-04T10:59:47Z","pushed_at":"2015-10-09T14:01:19Z","git_url":"git://github.com/bbc/rmp-translate.git","ssh_url":"git@github.com:bbc/rmp-translate.git","clone_url":"https://github.com/bbc/rmp-translate.git","svn_url":"https://github.com/bbc/rmp-translate","homepage":null,"size":519,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bbc:master","ref":"master","sha":"e6c0c5e0cf4312b49aeb7eaaa8b37e91f73ffce0","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":36441038,"name":"rmp-translate","full_name":"bbc/rmp-translate","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/rmp-translate","description":"A small composer library for translations in /programmes and Amen","fork":false,"url":"https://api.github.com/repos/bbc/rmp-translate","forks_url":"https://api.github.com/repos/bbc/rmp-translate/forks","keys_url":"https://api.github.com/repos/bbc/rmp-translate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/rmp-translate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/rmp-translate/teams","hooks_url":"https://api.github.com/repos/bbc/rmp-translate/hooks","issue_events_url":"https://api.github.com/repos/bbc/rmp-translate/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/rmp-translate/events","assignees_url":"https://api.github.com/repos/bbc/rmp-translate/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/rmp-translate/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/rmp-translate/tags","blobs_url":"https://api.github.com/repos/bbc/rmp-translate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/rmp-translate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/rmp-translate/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/rmp-translate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/rmp-translate/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/rmp-translate/languages","stargazers_url":"https://api.github.com/repos/bbc/rmp-translate/stargazers","contributors_url":"https://api.github.com/repos/bbc/rmp-translate/contributors","subscribers_url":"https://api.github.com/repos/bbc/rmp-translate/subscribers","subscription_url":"https://api.github.com/repos/bbc/rmp-translate/subscription","commits_url":"https://api.github.com/repos/bbc/rmp-translate/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/rmp-translate/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/rmp-translate/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/rmp-translate/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/rmp-translate/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/rmp-translate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/rmp-translate/merges","archive_url":"https://api.github.com/repos/bbc/rmp-translate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/rmp-translate/downloads","issues_url":"https://api.github.com/repos/bbc/rmp-translate/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/rmp-translate/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/rmp-translate/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/rmp-translate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/rmp-translate/labels{/name}","releases_url":"https://api.github.com/repos/bbc/rmp-translate/releases{/id}","created_at":"2015-05-28T13:43:17Z","updated_at":"2015-06-04T10:59:47Z","pushed_at":"2015-10-09T14:01:19Z","git_url":"git://github.com/bbc/rmp-translate.git","ssh_url":"git@github.com:bbc/rmp-translate.git","clone_url":"https://github.com/bbc/rmp-translate.git","svn_url":"https://github.com/bbc/rmp-translate","homepage":null,"size":519,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/4"},"html":{"href":"https://github.com/bbc/rmp-translate/pull/4"},"issue":{"href":"https://api.github.com/repos/bbc/rmp-translate/issues/4"},"comments":{"href":"https://api.github.com/repos/bbc/rmp-translate/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/rmp-translate/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/rmp-translate/statuses/042579c934582b101ad1b8d29fa98db316dba90e"}}}}