{"action":"created","comment":{"url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/comments/54795057","id":54795057,"diff_hunk":"@@ -1114,14 +1114,14 @@ function onTheList($theArray, $item)\n             $desclang = $_REQUEST['desclang'];\n         }\n \n-        $enable_google_translation = false;\n-\n         //is no description available in the wished language?\n         if (array_search($desclang, $desclangs) === false) {\n             $desclang = $desclangs[0];\n         }\n \n-        if (strtolower($desclang) != $lang && $lang != 'pl')\n+        if (isset($disable_google_translation) && $disable_google_translation)\n+            $enable_google_translation = false;\n+        else if (strtolower($desclang) != $lang && $lang != 'pl')","path":"viewcache.php","position":14,"original_position":14,"commit_id":"27f4e04c46c1949300cf845b6cf96edc06bdf139","original_commit_id":"27f4e04c46c1949300cf845b6cf96edc06bdf139","user":{"login":"wloczynutka","id":11460149,"avatar_url":"https://avatars.githubusercontent.com/u/11460149?v=3","gravatar_id":"","url":"https://api.github.com/users/wloczynutka","html_url":"https://github.com/wloczynutka","followers_url":"https://api.github.com/users/wloczynutka/followers","following_url":"https://api.github.com/users/wloczynutka/following{/other_user}","gists_url":"https://api.github.com/users/wloczynutka/gists{/gist_id}","starred_url":"https://api.github.com/users/wloczynutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wloczynutka/subscriptions","organizations_url":"https://api.github.com/users/wloczynutka/orgs","repos_url":"https://api.github.com/users/wloczynutka/repos","events_url":"https://api.github.com/users/wloczynutka/events{/privacy}","received_events_url":"https://api.github.com/users/wloczynutka/received_events","type":"User","site_admin":false},"body":"Could you check why 'pl' is hardcoded? i suppouse this is a bug. Maybe it is possible to fix it?\r\n","created_at":"2016-03-02T21:32:14Z","updated_at":"2016-03-02T21:32:14Z","html_url":"https://github.com/opencaching/opencaching-pl/pull/278#discussion_r54795057","pull_request_url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278","_links":{"self":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/comments/54795057"},"html":{"href":"https://github.com/opencaching/opencaching-pl/pull/278#discussion_r54795057"},"pull_request":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278"}}},"pull_request":{"url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278","id":61468632,"html_url":"https://github.com/opencaching/opencaching-pl/pull/278","diff_url":"https://github.com/opencaching/opencaching-pl/pull/278.diff","patch_url":"https://github.com/opencaching/opencaching-pl/pull/278.patch","issue_url":"https://api.github.com/repos/opencaching/opencaching-pl/issues/278","number":278,"state":"open","locked":false,"title":"added the option to disable google translations","user":{"login":"following5","id":1614754,"avatar_url":"https://avatars.githubusercontent.com/u/1614754?v=3","gravatar_id":"","url":"https://api.github.com/users/following5","html_url":"https://github.com/following5","followers_url":"https://api.github.com/users/following5/followers","following_url":"https://api.github.com/users/following5/following{/other_user}","gists_url":"https://api.github.com/users/following5/gists{/gist_id}","starred_url":"https://api.github.com/users/following5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/following5/subscriptions","organizations_url":"https://api.github.com/users/following5/orgs","repos_url":"https://api.github.com/users/following5/repos","events_url":"https://api.github.com/users/following5/events{/privacy}","received_events_url":"https://api.github.com/users/following5/received_events","type":"User","site_admin":false},"body":"I have set up a (devel) site and would like to see the original cache descriptions here (site lang is English, example descs are German).","created_at":"2016-03-02T21:19:49Z","updated_at":"2016-03-02T21:32:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b4a0dfc4b32d77c2c5ffd82a6dce48805636184","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278/commits","review_comments_url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278/comments","review_comment_url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencaching/opencaching-pl/issues/278/comments","statuses_url":"https://api.github.com/repos/opencaching/opencaching-pl/statuses/27f4e04c46c1949300cf845b6cf96edc06bdf139","head":{"label":"following5:disable-google-trans","ref":"disable-google-trans","sha":"27f4e04c46c1949300cf845b6cf96edc06bdf139","user":{"login":"following5","id":1614754,"avatar_url":"https://avatars.githubusercontent.com/u/1614754?v=3","gravatar_id":"","url":"https://api.github.com/users/following5","html_url":"https://github.com/following5","followers_url":"https://api.github.com/users/following5/followers","following_url":"https://api.github.com/users/following5/following{/other_user}","gists_url":"https://api.github.com/users/following5/gists{/gist_id}","starred_url":"https://api.github.com/users/following5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/following5/subscriptions","organizations_url":"https://api.github.com/users/following5/orgs","repos_url":"https://api.github.com/users/following5/repos","events_url":"https://api.github.com/users/following5/events{/privacy}","received_events_url":"https://api.github.com/users/following5/received_events","type":"User","site_admin":false},"repo":{"id":42244802,"name":"opencaching-pl","full_name":"following5/opencaching-pl","owner":{"login":"following5","id":1614754,"avatar_url":"https://avatars.githubusercontent.com/u/1614754?v=3","gravatar_id":"","url":"https://api.github.com/users/following5","html_url":"https://github.com/following5","followers_url":"https://api.github.com/users/following5/followers","following_url":"https://api.github.com/users/following5/following{/other_user}","gists_url":"https://api.github.com/users/following5/gists{/gist_id}","starred_url":"https://api.github.com/users/following5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/following5/subscriptions","organizations_url":"https://api.github.com/users/following5/orgs","repos_url":"https://api.github.com/users/following5/repos","events_url":"https://api.github.com/users/following5/events{/privacy}","received_events_url":"https://api.github.com/users/following5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/following5/opencaching-pl","description":"The source code of Opencaching.PL (and some other domains)","fork":true,"url":"https://api.github.com/repos/following5/opencaching-pl","forks_url":"https://api.github.com/repos/following5/opencaching-pl/forks","keys_url":"https://api.github.com/repos/following5/opencaching-pl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/following5/opencaching-pl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/following5/opencaching-pl/teams","hooks_url":"https://api.github.com/repos/following5/opencaching-pl/hooks","issue_events_url":"https://api.github.com/repos/following5/opencaching-pl/issues/events{/number}","events_url":"https://api.github.com/repos/following5/opencaching-pl/events","assignees_url":"https://api.github.com/repos/following5/opencaching-pl/assignees{/user}","branches_url":"https://api.github.com/repos/following5/opencaching-pl/branches{/branch}","tags_url":"https://api.github.com/repos/following5/opencaching-pl/tags","blobs_url":"https://api.github.com/repos/following5/opencaching-pl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/following5/opencaching-pl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/following5/opencaching-pl/git/refs{/sha}","trees_url":"https://api.github.com/repos/following5/opencaching-pl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/following5/opencaching-pl/statuses/{sha}","languages_url":"https://api.github.com/repos/following5/opencaching-pl/languages","stargazers_url":"https://api.github.com/repos/following5/opencaching-pl/stargazers","contributors_url":"https://api.github.com/repos/following5/opencaching-pl/contributors","subscribers_url":"https://api.github.com/repos/following5/opencaching-pl/subscribers","subscription_url":"https://api.github.com/repos/following5/opencaching-pl/subscription","commits_url":"https://api.github.com/repos/following5/opencaching-pl/commits{/sha}","git_commits_url":"https://api.github.com/repos/following5/opencaching-pl/git/commits{/sha}","comments_url":"https://api.github.com/repos/following5/opencaching-pl/comments{/number}","issue_comment_url":"https://api.github.com/repos/following5/opencaching-pl/issues/comments{/number}","contents_url":"https://api.github.com/repos/following5/opencaching-pl/contents/{+path}","compare_url":"https://api.github.com/repos/following5/opencaching-pl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/following5/opencaching-pl/merges","archive_url":"https://api.github.com/repos/following5/opencaching-pl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/following5/opencaching-pl/downloads","issues_url":"https://api.github.com/repos/following5/opencaching-pl/issues{/number}","pulls_url":"https://api.github.com/repos/following5/opencaching-pl/pulls{/number}","milestones_url":"https://api.github.com/repos/following5/opencaching-pl/milestones{/number}","notifications_url":"https://api.github.com/repos/following5/opencaching-pl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/following5/opencaching-pl/labels{/name}","releases_url":"https://api.github.com/repos/following5/opencaching-pl/releases{/id}","deployments_url":"https://api.github.com/repos/following5/opencaching-pl/deployments","created_at":"2015-09-10T13:02:44Z","updated_at":"2015-09-10T13:02:51Z","pushed_at":"2016-03-02T21:17:24Z","git_url":"git://github.com/following5/opencaching-pl.git","ssh_url":"git@github.com:following5/opencaching-pl.git","clone_url":"https://github.com/following5/opencaching-pl.git","svn_url":"https://github.com/following5/opencaching-pl","homepage":"http://opencaching.pl/","size":109985,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"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":"opencaching:master","ref":"master","sha":"504acb91d6e488ae4105b19f02cd25e0cf7fc54e","user":{"login":"opencaching","id":13405646,"avatar_url":"https://avatars.githubusercontent.com/u/13405646?v=3","gravatar_id":"","url":"https://api.github.com/users/opencaching","html_url":"https://github.com/opencaching","followers_url":"https://api.github.com/users/opencaching/followers","following_url":"https://api.github.com/users/opencaching/following{/other_user}","gists_url":"https://api.github.com/users/opencaching/gists{/gist_id}","starred_url":"https://api.github.com/users/opencaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencaching/subscriptions","organizations_url":"https://api.github.com/users/opencaching/orgs","repos_url":"https://api.github.com/users/opencaching/repos","events_url":"https://api.github.com/users/opencaching/events{/privacy}","received_events_url":"https://api.github.com/users/opencaching/received_events","type":"Organization","site_admin":false},"repo":{"id":39498924,"name":"opencaching-pl","full_name":"opencaching/opencaching-pl","owner":{"login":"opencaching","id":13405646,"avatar_url":"https://avatars.githubusercontent.com/u/13405646?v=3","gravatar_id":"","url":"https://api.github.com/users/opencaching","html_url":"https://github.com/opencaching","followers_url":"https://api.github.com/users/opencaching/followers","following_url":"https://api.github.com/users/opencaching/following{/other_user}","gists_url":"https://api.github.com/users/opencaching/gists{/gist_id}","starred_url":"https://api.github.com/users/opencaching/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencaching/subscriptions","organizations_url":"https://api.github.com/users/opencaching/orgs","repos_url":"https://api.github.com/users/opencaching/repos","events_url":"https://api.github.com/users/opencaching/events{/privacy}","received_events_url":"https://api.github.com/users/opencaching/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencaching/opencaching-pl","description":"The source code of Opencaching.PL (and some other domains)","fork":false,"url":"https://api.github.com/repos/opencaching/opencaching-pl","forks_url":"https://api.github.com/repos/opencaching/opencaching-pl/forks","keys_url":"https://api.github.com/repos/opencaching/opencaching-pl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencaching/opencaching-pl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencaching/opencaching-pl/teams","hooks_url":"https://api.github.com/repos/opencaching/opencaching-pl/hooks","issue_events_url":"https://api.github.com/repos/opencaching/opencaching-pl/issues/events{/number}","events_url":"https://api.github.com/repos/opencaching/opencaching-pl/events","assignees_url":"https://api.github.com/repos/opencaching/opencaching-pl/assignees{/user}","branches_url":"https://api.github.com/repos/opencaching/opencaching-pl/branches{/branch}","tags_url":"https://api.github.com/repos/opencaching/opencaching-pl/tags","blobs_url":"https://api.github.com/repos/opencaching/opencaching-pl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencaching/opencaching-pl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencaching/opencaching-pl/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencaching/opencaching-pl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencaching/opencaching-pl/statuses/{sha}","languages_url":"https://api.github.com/repos/opencaching/opencaching-pl/languages","stargazers_url":"https://api.github.com/repos/opencaching/opencaching-pl/stargazers","contributors_url":"https://api.github.com/repos/opencaching/opencaching-pl/contributors","subscribers_url":"https://api.github.com/repos/opencaching/opencaching-pl/subscribers","subscription_url":"https://api.github.com/repos/opencaching/opencaching-pl/subscription","commits_url":"https://api.github.com/repos/opencaching/opencaching-pl/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencaching/opencaching-pl/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencaching/opencaching-pl/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencaching/opencaching-pl/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencaching/opencaching-pl/contents/{+path}","compare_url":"https://api.github.com/repos/opencaching/opencaching-pl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencaching/opencaching-pl/merges","archive_url":"https://api.github.com/repos/opencaching/opencaching-pl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencaching/opencaching-pl/downloads","issues_url":"https://api.github.com/repos/opencaching/opencaching-pl/issues{/number}","pulls_url":"https://api.github.com/repos/opencaching/opencaching-pl/pulls{/number}","milestones_url":"https://api.github.com/repos/opencaching/opencaching-pl/milestones{/number}","notifications_url":"https://api.github.com/repos/opencaching/opencaching-pl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencaching/opencaching-pl/labels{/name}","releases_url":"https://api.github.com/repos/opencaching/opencaching-pl/releases{/id}","deployments_url":"https://api.github.com/repos/opencaching/opencaching-pl/deployments","created_at":"2015-07-22T09:59:54Z","updated_at":"2016-01-28T22:23:43Z","pushed_at":"2016-03-02T21:19:50Z","git_url":"git://github.com/opencaching/opencaching-pl.git","ssh_url":"git@github.com:opencaching/opencaching-pl.git","clone_url":"https://github.com/opencaching/opencaching-pl.git","svn_url":"https://github.com/opencaching/opencaching-pl","homepage":"http://opencaching.pl/","size":112729,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":87,"forks":8,"open_issues":87,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278"},"html":{"href":"https://github.com/opencaching/opencaching-pl/pull/278"},"issue":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/issues/278"},"comments":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/issues/278/comments"},"review_comments":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278/comments"},"review_comment":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/pulls/278/commits"},"statuses":{"href":"https://api.github.com/repos/opencaching/opencaching-pl/statuses/27f4e04c46c1949300cf845b6cf96edc06bdf139"}}}}