{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/comments/23520793","id":23520793,"diff_hunk":"@@ -19,6 +23,20 @@\n   <button type=\"submit\">{{ _('Change') }}</button>\n </form>\n \n-<div id=\"redirected-from-lang\" />\n- \n+{% if 'from-lang' in request.GET %}\n+  {% set from_lang_code = request.GET['from-lang'] %}\n+  {% set from_lang = settings.LANGUAGE_NAMES.get(from_lang_code, 'your selected language') %}\n+  {% if from_lang != 'your selected language' %}\n+    {{ activate(from_lang_code) }}\n+    {% set latest_version_from_lang = request.GET.get('latest-version') %}\n+  {% endif %}\n+  <div id=\"redirected-from-lang\">\n+    {{ _('Documentation for Firefox OS {version} is not yet available in {language}, so we redirected you to the English version.') | f(version=active_version(request), language=from_lang) }}","path":"masterfirefoxos/base/templates/includes/version-language-switcher.html","position":39,"original_position":39,"commit_id":"4e77f51eaca3645a2227347cee1092ee7520e922","original_commit_id":"4e77f51eaca3645a2227347cee1092ee7520e922","user":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"body":"I believe the message should be \r\n`Documentation for Firefox OS {version} is not yet available in English, so we redirected you to the English version.` \r\nwith a note to localizers to translate the first `English` to their language. Otherwise the language name will be in English. \r\n\r\nE.g. the translated text for Greek would be\r\n`Δεν υπάρχει τεκμηρίωση για το Firefox OS 1.3 στα Greek, επομένως σας μεταφέραμε στην Αγγλική έκδοση`\r\nwhile it should be \r\n`Δεν υπάρχει τεκμηρίωση για το Firefox OS 1.3 στα Ελληνικά, επομένως σας μεταφέραμε στην Αγγλική έκδοση`","created_at":"2015-01-26T10:12:31Z","updated_at":"2015-01-26T10:12:31Z","html_url":"https://github.com/mozilla/masterfirefoxos/pull/66#discussion_r23520793","pull_request_url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/comments/23520793"},"html":{"href":"https://github.com/mozilla/masterfirefoxos/pull/66#discussion_r23520793"},"pull_request":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66","id":27963434,"html_url":"https://github.com/mozilla/masterfirefoxos/pull/66","diff_url":"https://github.com/mozilla/masterfirefoxos/pull/66.diff","patch_url":"https://github.com/mozilla/masterfirefoxos/pull/66.patch","issue_url":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/66","number":66,"state":"open","locked":false,"title":"Templatize redirect from lang message","user":{"login":"jgmize","id":161718,"avatar_url":"https://avatars.githubusercontent.com/u/161718?v=3","gravatar_id":"","url":"https://api.github.com/users/jgmize","html_url":"https://github.com/jgmize","followers_url":"https://api.github.com/users/jgmize/followers","following_url":"https://api.github.com/users/jgmize/following{/other_user}","gists_url":"https://api.github.com/users/jgmize/gists{/gist_id}","starred_url":"https://api.github.com/users/jgmize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgmize/subscriptions","organizations_url":"https://api.github.com/users/jgmize/orgs","repos_url":"https://api.github.com/users/jgmize/repos","events_url":"https://api.github.com/users/jgmize/events{/privacy}","received_events_url":"https://api.github.com/users/jgmize/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-23T23:11:42Z","updated_at":"2015-01-26T10:12:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06fb1f6527b08832574d68cd8cf6aa35fb35c22c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66/commits","review_comments_url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66/comments","review_comment_url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/66/comments","statuses_url":"https://api.github.com/repos/mozilla/masterfirefoxos/statuses/4e77f51eaca3645a2227347cee1092ee7520e922","head":{"label":"jgmize:templatize-redirect-from-lang-message","ref":"templatize-redirect-from-lang-message","sha":"4e77f51eaca3645a2227347cee1092ee7520e922","user":{"login":"jgmize","id":161718,"avatar_url":"https://avatars.githubusercontent.com/u/161718?v=3","gravatar_id":"","url":"https://api.github.com/users/jgmize","html_url":"https://github.com/jgmize","followers_url":"https://api.github.com/users/jgmize/followers","following_url":"https://api.github.com/users/jgmize/following{/other_user}","gists_url":"https://api.github.com/users/jgmize/gists{/gist_id}","starred_url":"https://api.github.com/users/jgmize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgmize/subscriptions","organizations_url":"https://api.github.com/users/jgmize/orgs","repos_url":"https://api.github.com/users/jgmize/repos","events_url":"https://api.github.com/users/jgmize/events{/privacy}","received_events_url":"https://api.github.com/users/jgmize/received_events","type":"User","site_admin":false},"repo":{"id":27774404,"name":"masterfirefoxos","full_name":"jgmize/masterfirefoxos","owner":{"login":"jgmize","id":161718,"avatar_url":"https://avatars.githubusercontent.com/u/161718?v=3","gravatar_id":"","url":"https://api.github.com/users/jgmize","html_url":"https://github.com/jgmize","followers_url":"https://api.github.com/users/jgmize/followers","following_url":"https://api.github.com/users/jgmize/following{/other_user}","gists_url":"https://api.github.com/users/jgmize/gists{/gist_id}","starred_url":"https://api.github.com/users/jgmize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgmize/subscriptions","organizations_url":"https://api.github.com/users/jgmize/orgs","repos_url":"https://api.github.com/users/jgmize/repos","events_url":"https://api.github.com/users/jgmize/events{/privacy}","received_events_url":"https://api.github.com/users/jgmize/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgmize/masterfirefoxos","description":"The Master Firefox OS Website https://wiki.mozilla.org/Websites/Master_Firefox_OS","fork":true,"url":"https://api.github.com/repos/jgmize/masterfirefoxos","forks_url":"https://api.github.com/repos/jgmize/masterfirefoxos/forks","keys_url":"https://api.github.com/repos/jgmize/masterfirefoxos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgmize/masterfirefoxos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgmize/masterfirefoxos/teams","hooks_url":"https://api.github.com/repos/jgmize/masterfirefoxos/hooks","issue_events_url":"https://api.github.com/repos/jgmize/masterfirefoxos/issues/events{/number}","events_url":"https://api.github.com/repos/jgmize/masterfirefoxos/events","assignees_url":"https://api.github.com/repos/jgmize/masterfirefoxos/assignees{/user}","branches_url":"https://api.github.com/repos/jgmize/masterfirefoxos/branches{/branch}","tags_url":"https://api.github.com/repos/jgmize/masterfirefoxos/tags","blobs_url":"https://api.github.com/repos/jgmize/masterfirefoxos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgmize/masterfirefoxos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgmize/masterfirefoxos/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgmize/masterfirefoxos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgmize/masterfirefoxos/statuses/{sha}","languages_url":"https://api.github.com/repos/jgmize/masterfirefoxos/languages","stargazers_url":"https://api.github.com/repos/jgmize/masterfirefoxos/stargazers","contributors_url":"https://api.github.com/repos/jgmize/masterfirefoxos/contributors","subscribers_url":"https://api.github.com/repos/jgmize/masterfirefoxos/subscribers","subscription_url":"https://api.github.com/repos/jgmize/masterfirefoxos/subscription","commits_url":"https://api.github.com/repos/jgmize/masterfirefoxos/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgmize/masterfirefoxos/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgmize/masterfirefoxos/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgmize/masterfirefoxos/issues/comments/{number}","contents_url":"https://api.github.com/repos/jgmize/masterfirefoxos/contents/{+path}","compare_url":"https://api.github.com/repos/jgmize/masterfirefoxos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgmize/masterfirefoxos/merges","archive_url":"https://api.github.com/repos/jgmize/masterfirefoxos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgmize/masterfirefoxos/downloads","issues_url":"https://api.github.com/repos/jgmize/masterfirefoxos/issues{/number}","pulls_url":"https://api.github.com/repos/jgmize/masterfirefoxos/pulls{/number}","milestones_url":"https://api.github.com/repos/jgmize/masterfirefoxos/milestones{/number}","notifications_url":"https://api.github.com/repos/jgmize/masterfirefoxos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgmize/masterfirefoxos/labels{/name}","releases_url":"https://api.github.com/repos/jgmize/masterfirefoxos/releases{/id}","created_at":"2014-12-09T16:00:36Z","updated_at":"2014-12-09T16:00:36Z","pushed_at":"2015-01-26T08:25:54Z","git_url":"git://github.com/jgmize/masterfirefoxos.git","ssh_url":"git@github.com:jgmize/masterfirefoxos.git","clone_url":"https://github.com/jgmize/masterfirefoxos.git","svn_url":"https://github.com/jgmize/masterfirefoxos","homepage":null,"size":832,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"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":"mozilla:master","ref":"master","sha":"8e22db4af1e3640fedbd5353693a8eb0b9ec0d66","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":25549285,"name":"masterfirefoxos","full_name":"mozilla/masterfirefoxos","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/masterfirefoxos","description":"The Master Firefox OS Website https://wiki.mozilla.org/Websites/Master_Firefox_OS","fork":false,"url":"https://api.github.com/repos/mozilla/masterfirefoxos","forks_url":"https://api.github.com/repos/mozilla/masterfirefoxos/forks","keys_url":"https://api.github.com/repos/mozilla/masterfirefoxos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/masterfirefoxos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/masterfirefoxos/teams","hooks_url":"https://api.github.com/repos/mozilla/masterfirefoxos/hooks","issue_events_url":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/masterfirefoxos/events","assignees_url":"https://api.github.com/repos/mozilla/masterfirefoxos/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/masterfirefoxos/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/masterfirefoxos/tags","blobs_url":"https://api.github.com/repos/mozilla/masterfirefoxos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/masterfirefoxos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/masterfirefoxos/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/masterfirefoxos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/masterfirefoxos/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/masterfirefoxos/languages","stargazers_url":"https://api.github.com/repos/mozilla/masterfirefoxos/stargazers","contributors_url":"https://api.github.com/repos/mozilla/masterfirefoxos/contributors","subscribers_url":"https://api.github.com/repos/mozilla/masterfirefoxos/subscribers","subscription_url":"https://api.github.com/repos/mozilla/masterfirefoxos/subscription","commits_url":"https://api.github.com/repos/mozilla/masterfirefoxos/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/masterfirefoxos/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/masterfirefoxos/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/masterfirefoxos/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/masterfirefoxos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/masterfirefoxos/merges","archive_url":"https://api.github.com/repos/mozilla/masterfirefoxos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/masterfirefoxos/downloads","issues_url":"https://api.github.com/repos/mozilla/masterfirefoxos/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/masterfirefoxos/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/masterfirefoxos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/masterfirefoxos/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/masterfirefoxos/releases{/id}","created_at":"2014-10-21T22:25:34Z","updated_at":"2015-01-26T08:29:21Z","pushed_at":"2015-01-26T08:29:20Z","git_url":"git://github.com/mozilla/masterfirefoxos.git","ssh_url":"git@github.com:mozilla/masterfirefoxos.git","clone_url":"https://github.com/mozilla/masterfirefoxos.git","svn_url":"https://github.com/mozilla/masterfirefoxos","homepage":null,"size":1519,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66"},"html":{"href":"https://github.com/mozilla/masterfirefoxos/pull/66"},"issue":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/66"},"comments":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/masterfirefoxos/statuses/4e77f51eaca3645a2227347cee1092ee7520e922"}}}}