{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/31173779","id":31173779,"diff_hunk":"@@ -372,14 +372,15 @@ var CallScreen = {\n   },\n \n   showClock: function cs_showClock(now) {\n-    LazyL10n.get(function localized(_) {\n+    navigator.mozL10n.ready(function() {\n       var f = new navigator.mozL10n.DateTimeFormat();\n-      var timeFormat = window.navigator.mozHour12 ? _('shortTimeFormat12') :\n-                                                    _('shortTimeFormat24');\n+      var timeFormat =\n+        window.navigator.mozHour12 ? navigator.mozL10n.get('shortTimeFormat12')\n+                                   : navigator.mozL10n.get('shortTimeFormat24');\n       // FIXME/bug 1060333: Replace span with hidden mechanism.\n       // Don't show am/pm (for 12 or 24 time) in the callscreen\n       timeFormat = timeFormat.replace('%p', '<span>%p</span>');\n-      var dateFormat = _('longDateFormat');\n+      var dateFormat = navigator.mozL10n.get('longDateFormat');","path":"apps/callscreen/js/call_screen.js","position":55,"original_position":55,"commit_id":"f125275ca5964406b6cfae6c35423737da4c4b44","original_commit_id":"f125275ca5964406b6cfae6c35423737da4c4b44","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"body":"if you want to use the opportunity to remove sync .get, you can use mozL10n.formatValue here. This will be compatible with the upcoming v3 API then :)","created_at":"2015-05-27T19:59:26Z","updated_at":"2015-05-27T19:59:26Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/30157#discussion_r31173779","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/31173779"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30157#discussion_r31173779"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157","id":35855833,"html_url":"https://github.com/mozilla-b2g/gaia/pull/30157","diff_url":"https://github.com/mozilla-b2g/gaia/pull/30157.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/30157.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30157","number":30157,"state":"open","locked":false,"title":"Bug 1104667 - Remove the LazyL10n code and refactored the callscreen to use modern L10n primitives r=drs,gandalf","user":{"login":"gabrielesvelto","id":1159312,"avatar_url":"https://avatars.githubusercontent.com/u/1159312?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielesvelto","html_url":"https://github.com/gabrielesvelto","followers_url":"https://api.github.com/users/gabrielesvelto/followers","following_url":"https://api.github.com/users/gabrielesvelto/following{/other_user}","gists_url":"https://api.github.com/users/gabrielesvelto/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielesvelto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielesvelto/subscriptions","organizations_url":"https://api.github.com/users/gabrielesvelto/orgs","repos_url":"https://api.github.com/users/gabrielesvelto/repos","events_url":"https://api.github.com/users/gabrielesvelto/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielesvelto/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-20T17:25:32Z","updated_at":"2015-05-27T19:59:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39cc23e3c6a5fe86499ef5ec624a3eac26c96cb8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30157/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f125275ca5964406b6cfae6c35423737da4c4b44","head":{"label":"gabrielesvelto:bug-1104667-callscreen-l10n","ref":"bug-1104667-callscreen-l10n","sha":"f125275ca5964406b6cfae6c35423737da4c4b44","user":{"login":"gabrielesvelto","id":1159312,"avatar_url":"https://avatars.githubusercontent.com/u/1159312?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielesvelto","html_url":"https://github.com/gabrielesvelto","followers_url":"https://api.github.com/users/gabrielesvelto/followers","following_url":"https://api.github.com/users/gabrielesvelto/following{/other_user}","gists_url":"https://api.github.com/users/gabrielesvelto/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielesvelto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielesvelto/subscriptions","organizations_url":"https://api.github.com/users/gabrielesvelto/orgs","repos_url":"https://api.github.com/users/gabrielesvelto/repos","events_url":"https://api.github.com/users/gabrielesvelto/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielesvelto/received_events","type":"User","site_admin":false},"repo":{"id":6279318,"name":"gaia","full_name":"gabrielesvelto/gaia","owner":{"login":"gabrielesvelto","id":1159312,"avatar_url":"https://avatars.githubusercontent.com/u/1159312?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielesvelto","html_url":"https://github.com/gabrielesvelto","followers_url":"https://api.github.com/users/gabrielesvelto/followers","following_url":"https://api.github.com/users/gabrielesvelto/following{/other_user}","gists_url":"https://api.github.com/users/gabrielesvelto/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielesvelto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielesvelto/subscriptions","organizations_url":"https://api.github.com/users/gabrielesvelto/orgs","repos_url":"https://api.github.com/users/gabrielesvelto/repos","events_url":"https://api.github.com/users/gabrielesvelto/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielesvelto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielesvelto/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/gabrielesvelto/gaia","forks_url":"https://api.github.com/repos/gabrielesvelto/gaia/forks","keys_url":"https://api.github.com/repos/gabrielesvelto/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielesvelto/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielesvelto/gaia/teams","hooks_url":"https://api.github.com/repos/gabrielesvelto/gaia/hooks","issue_events_url":"https://api.github.com/repos/gabrielesvelto/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielesvelto/gaia/events","assignees_url":"https://api.github.com/repos/gabrielesvelto/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielesvelto/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielesvelto/gaia/tags","blobs_url":"https://api.github.com/repos/gabrielesvelto/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielesvelto/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielesvelto/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielesvelto/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielesvelto/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielesvelto/gaia/languages","stargazers_url":"https://api.github.com/repos/gabrielesvelto/gaia/stargazers","contributors_url":"https://api.github.com/repos/gabrielesvelto/gaia/contributors","subscribers_url":"https://api.github.com/repos/gabrielesvelto/gaia/subscribers","subscription_url":"https://api.github.com/repos/gabrielesvelto/gaia/subscription","commits_url":"https://api.github.com/repos/gabrielesvelto/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielesvelto/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielesvelto/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielesvelto/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielesvelto/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielesvelto/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielesvelto/gaia/merges","archive_url":"https://api.github.com/repos/gabrielesvelto/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielesvelto/gaia/downloads","issues_url":"https://api.github.com/repos/gabrielesvelto/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielesvelto/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielesvelto/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielesvelto/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielesvelto/gaia/labels{/name}","releases_url":"https://api.github.com/repos/gabrielesvelto/gaia/releases{/id}","created_at":"2012-10-18T13:53:19Z","updated_at":"2015-05-07T14:08:22Z","pushed_at":"2015-05-27T16:47:22Z","git_url":"git://github.com/gabrielesvelto/gaia.git","ssh_url":"git@github.com:gabrielesvelto/gaia.git","clone_url":"https://github.com/gabrielesvelto/gaia.git","svn_url":"https://github.com/gabrielesvelto/gaia","homepage":"https://wiki.mozilla.org/B2G","size":933312,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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-b2g:master","ref":"master","sha":"db93a2264a4ed0092340ccd6892237c6b32cb96b","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-05-27T02:33:54Z","pushed_at":"2015-05-27T19:57:56Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1669669,"stargazers_count":1934,"watchers_count":1934,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2311,"mirror_url":null,"open_issues_count":996,"forks":2311,"open_issues":996,"watchers":1934,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30157"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30157"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30157/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30157/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/f125275ca5964406b6cfae6c35423737da4c4b44"}}}}