{"action":"created","comment":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/comments/38972398","id":38972398,"diff_hunk":"@@ -1 +1,2 @@\n-<span class=\"label label-{{ value == true ? 'success' : 'danger' }}\">{{ value == true ? 'YES' : 'NO' }}</span>\n+{% trans_default_domain \"EasyAdminBundle\" %}\n+<span class=\"label label-{{ value == true ? 'success' : 'danger' }}\">{{ ('boolean.'~(value == true ? 'true' : 'false'))|trans }}</span>","path":"Resources/views/default/field_boolean.html.twig","position":3,"original_position":3,"commit_id":"1129e0f193823d3acdfb64a8c279328b12542854","original_commit_id":"1129e0f193823d3acdfb64a8c279328b12542854","user":{"login":"Pierstoval","id":3369266,"avatar_url":"https://avatars.githubusercontent.com/u/3369266?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierstoval","html_url":"https://github.com/Pierstoval","followers_url":"https://api.github.com/users/Pierstoval/followers","following_url":"https://api.github.com/users/Pierstoval/following{/other_user}","gists_url":"https://api.github.com/users/Pierstoval/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierstoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierstoval/subscriptions","organizations_url":"https://api.github.com/users/Pierstoval/orgs","repos_url":"https://api.github.com/users/Pierstoval/repos","events_url":"https://api.github.com/users/Pierstoval/events{/privacy}","received_events_url":"https://api.github.com/users/Pierstoval/received_events","type":"User","site_admin":false},"body":"I find your snippet very verbose and class, I might re-think about the next time I'll use ternary operators in Twig :confused: ","created_at":"2015-09-08T20:00:51Z","updated_at":"2015-09-08T20:00:51Z","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443#discussion_r38972398","pull_request_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443","_links":{"self":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/comments/38972398"},"html":{"href":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443#discussion_r38972398"},"pull_request":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443"}}},"pull_request":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443","id":44428569,"html_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443","diff_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443.diff","patch_url":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443.patch","issue_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/443","number":443,"state":"open","locked":false,"title":"Fix 442: Translate boolean labels","user":{"login":"thomasbeaujean","id":5817919,"avatar_url":"https://avatars.githubusercontent.com/u/5817919?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasbeaujean","html_url":"https://github.com/thomasbeaujean","followers_url":"https://api.github.com/users/thomasbeaujean/followers","following_url":"https://api.github.com/users/thomasbeaujean/following{/other_user}","gists_url":"https://api.github.com/users/thomasbeaujean/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbeaujean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbeaujean/subscriptions","organizations_url":"https://api.github.com/users/thomasbeaujean/orgs","repos_url":"https://api.github.com/users/thomasbeaujean/repos","events_url":"https://api.github.com/users/thomasbeaujean/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbeaujean/received_events","type":"User","site_admin":false},"body":"Use case:\r\n\r\nI have a list. \r\nOne property is a boolean\r\n(I do not use the ajax shortcut to handle this property)\r\n\r\nThe YES|NO labels are not translated.","created_at":"2015-09-08T12:57:20Z","updated_at":"2015-09-08T20:00:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a98c91047320df2ec51c426dd1dc248dd97975f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443/commits","review_comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443/comments","review_comment_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/443/comments","statuses_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/statuses/1129e0f193823d3acdfb64a8c279328b12542854","head":{"label":"thomasbeaujean:fix_442","ref":"fix_442","sha":"1129e0f193823d3acdfb64a8c279328b12542854","user":{"login":"thomasbeaujean","id":5817919,"avatar_url":"https://avatars.githubusercontent.com/u/5817919?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasbeaujean","html_url":"https://github.com/thomasbeaujean","followers_url":"https://api.github.com/users/thomasbeaujean/followers","following_url":"https://api.github.com/users/thomasbeaujean/following{/other_user}","gists_url":"https://api.github.com/users/thomasbeaujean/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbeaujean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbeaujean/subscriptions","organizations_url":"https://api.github.com/users/thomasbeaujean/orgs","repos_url":"https://api.github.com/users/thomasbeaujean/repos","events_url":"https://api.github.com/users/thomasbeaujean/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbeaujean/received_events","type":"User","site_admin":false},"repo":{"id":41304621,"name":"EasyAdminBundle","full_name":"thomasbeaujean/EasyAdminBundle","owner":{"login":"thomasbeaujean","id":5817919,"avatar_url":"https://avatars.githubusercontent.com/u/5817919?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasbeaujean","html_url":"https://github.com/thomasbeaujean","followers_url":"https://api.github.com/users/thomasbeaujean/followers","following_url":"https://api.github.com/users/thomasbeaujean/following{/other_user}","gists_url":"https://api.github.com/users/thomasbeaujean/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbeaujean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbeaujean/subscriptions","organizations_url":"https://api.github.com/users/thomasbeaujean/orgs","repos_url":"https://api.github.com/users/thomasbeaujean/repos","events_url":"https://api.github.com/users/thomasbeaujean/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbeaujean/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thomasbeaujean/EasyAdminBundle","description":"The new (and simple) admin generator for Symfony applications.","fork":true,"url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle","forks_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/forks","keys_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/teams","hooks_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/events","assignees_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/tags","blobs_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/languages","stargazers_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/subscription","commits_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/merges","archive_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/downloads","issues_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/thomasbeaujean/EasyAdminBundle/releases{/id}","created_at":"2015-08-24T13:28:25Z","updated_at":"2015-08-24T13:28:26Z","pushed_at":"2015-09-08T12:56:37Z","git_url":"git://github.com/thomasbeaujean/EasyAdminBundle.git","ssh_url":"git@github.com:thomasbeaujean/EasyAdminBundle.git","clone_url":"https://github.com/thomasbeaujean/EasyAdminBundle.git","svn_url":"https://github.com/thomasbeaujean/EasyAdminBundle","homepage":"","size":4169,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"javiereguiluz:master","ref":"master","sha":"6e3c824b3c7adc0b990210b7c7fec06f8b8f88ac","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"repo":{"id":29126334,"name":"EasyAdminBundle","full_name":"javiereguiluz/EasyAdminBundle","owner":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javiereguiluz/EasyAdminBundle","description":"The new (and simple) admin generator for Symfony applications.","fork":false,"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle","forks_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/forks","keys_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/teams","hooks_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/hooks","issue_events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/events{/number}","events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/events","assignees_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/assignees{/user}","branches_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/branches{/branch}","tags_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/tags","blobs_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/languages","stargazers_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/stargazers","contributors_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/contributors","subscribers_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/subscribers","subscription_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/subscription","commits_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/contents/{+path}","compare_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/merges","archive_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/downloads","issues_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues{/number}","pulls_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/labels{/name}","releases_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/releases{/id}","created_at":"2015-01-12T08:43:02Z","updated_at":"2015-09-08T13:16:50Z","pushed_at":"2015-09-08T12:57:21Z","git_url":"git://github.com/javiereguiluz/EasyAdminBundle.git","ssh_url":"git@github.com:javiereguiluz/EasyAdminBundle.git","clone_url":"https://github.com/javiereguiluz/EasyAdminBundle.git","svn_url":"https://github.com/javiereguiluz/EasyAdminBundle","homepage":"","size":8641,"stargazers_count":621,"watchers_count":621,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":47,"forks":82,"open_issues":47,"watchers":621,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443"},"html":{"href":"https://github.com/javiereguiluz/EasyAdminBundle/pull/443"},"issue":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/443"},"comments":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/443/comments"},"review_comments":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443/comments"},"review_comment":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/pulls/443/commits"},"statuses":{"href":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/statuses/1129e0f193823d3acdfb64a8c279328b12542854"}}}}