{"action":"created","comment":{"url":"https://api.github.com/repos/solidusio/solidus/pulls/comments/51328722","id":51328722,"diff_hunk":"@@ -33,7 +33,7 @@\n         </fieldset>\n \n         <%= f.field_container :stock_location do %>\n-          <%= f.label :stock_location, Spree.t(:stock_location) %>\n+          <%= f.label Spree::StockLocation.model_name.human %>","path":"backend/app/views/spree/admin/customer_returns/new.html.erb","position":null,"original_position":5,"commit_id":"c6feb7448d815ef20b2d01a785fca551791880ce","original_commit_id":"fa5d342596e939e6ea0450f0a2d0cf708f9a3cae","user":{"login":"Murph33","id":12613649,"avatar_url":"https://avatars.githubusercontent.com/u/12613649?v=3","gravatar_id":"","url":"https://api.github.com/users/Murph33","html_url":"https://github.com/Murph33","followers_url":"https://api.github.com/users/Murph33/followers","following_url":"https://api.github.com/users/Murph33/following{/other_user}","gists_url":"https://api.github.com/users/Murph33/gists{/gist_id}","starred_url":"https://api.github.com/users/Murph33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murph33/subscriptions","organizations_url":"https://api.github.com/users/Murph33/orgs","repos_url":"https://api.github.com/users/Murph33/repos","events_url":"https://api.github.com/users/Murph33/events{/privacy}","received_events_url":"https://api.github.com/users/Murph33/received_events","type":"User","site_admin":false},"body":"Word came from on high to completely ignore the select2 bug and not worry about it.  So just properly formed label and wait for them to patch it I guess.  Thanks for the help!","created_at":"2016-01-29T23:11:21Z","updated_at":"2016-01-29T23:11:21Z","html_url":"https://github.com/solidusio/solidus/pull/764#discussion_r51328722","pull_request_url":"https://api.github.com/repos/solidusio/solidus/pulls/764","_links":{"self":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/comments/51328722"},"html":{"href":"https://github.com/solidusio/solidus/pull/764#discussion_r51328722"},"pull_request":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/764"}}},"pull_request":{"url":"https://api.github.com/repos/solidusio/solidus/pulls/764","id":57590163,"html_url":"https://github.com/solidusio/solidus/pull/764","diff_url":"https://github.com/solidusio/solidus/pull/764.diff","patch_url":"https://github.com/solidusio/solidus/pull/764.patch","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/764","number":764,"state":"open","locked":false,"title":"Use attribute translations for customer return forms","user":{"login":"Murph33","id":12613649,"avatar_url":"https://avatars.githubusercontent.com/u/12613649?v=3","gravatar_id":"","url":"https://api.github.com/users/Murph33","html_url":"https://github.com/Murph33","followers_url":"https://api.github.com/users/Murph33/followers","following_url":"https://api.github.com/users/Murph33/following{/other_user}","gists_url":"https://api.github.com/users/Murph33/gists{/gist_id}","starred_url":"https://api.github.com/users/Murph33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murph33/subscriptions","organizations_url":"https://api.github.com/users/Murph33/orgs","repos_url":"https://api.github.com/users/Murph33/repos","events_url":"https://api.github.com/users/Murph33/events{/privacy}","received_events_url":"https://api.github.com/users/Murph33/received_events","type":"User","site_admin":false},"body":"This is to better utilize I18n with more verbosity to make it clear and easier to translate.  By using attributes from the model it will be much more clear what is happening instead of taking the translation from \"some place\" in the dictionary.  \r\n\r\nThis is cherry picked from #549 and is part of an ongoing chain of PRs as discussed in #735 to improve the I18n implementation.\r\n\r\nThe only changes from the commit is not erasing things in the dictionary and adding `item_received?` to the ReturnItem section.","created_at":"2016-01-29T00:40:15Z","updated_at":"2016-01-29T23:11:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2153e08a398029b406c5654bd4b1f5fc6cc3b80e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solidusio/solidus/pulls/764/commits","review_comments_url":"https://api.github.com/repos/solidusio/solidus/pulls/764/comments","review_comment_url":"https://api.github.com/repos/solidusio/solidus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/764/comments","statuses_url":"https://api.github.com/repos/solidusio/solidus/statuses/c6feb7448d815ef20b2d01a785fca551791880ce","head":{"label":"Murph33:use_attribute_translations_customer_return_forms","ref":"use_attribute_translations_customer_return_forms","sha":"c6feb7448d815ef20b2d01a785fca551791880ce","user":{"login":"Murph33","id":12613649,"avatar_url":"https://avatars.githubusercontent.com/u/12613649?v=3","gravatar_id":"","url":"https://api.github.com/users/Murph33","html_url":"https://github.com/Murph33","followers_url":"https://api.github.com/users/Murph33/followers","following_url":"https://api.github.com/users/Murph33/following{/other_user}","gists_url":"https://api.github.com/users/Murph33/gists{/gist_id}","starred_url":"https://api.github.com/users/Murph33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murph33/subscriptions","organizations_url":"https://api.github.com/users/Murph33/orgs","repos_url":"https://api.github.com/users/Murph33/repos","events_url":"https://api.github.com/users/Murph33/events{/privacy}","received_events_url":"https://api.github.com/users/Murph33/received_events","type":"User","site_admin":false},"repo":{"id":50465112,"name":"solidus","full_name":"Murph33/solidus","owner":{"login":"Murph33","id":12613649,"avatar_url":"https://avatars.githubusercontent.com/u/12613649?v=3","gravatar_id":"","url":"https://api.github.com/users/Murph33","html_url":"https://github.com/Murph33","followers_url":"https://api.github.com/users/Murph33/followers","following_url":"https://api.github.com/users/Murph33/following{/other_user}","gists_url":"https://api.github.com/users/Murph33/gists{/gist_id}","starred_url":"https://api.github.com/users/Murph33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murph33/subscriptions","organizations_url":"https://api.github.com/users/Murph33/orgs","repos_url":"https://api.github.com/users/Murph33/repos","events_url":"https://api.github.com/users/Murph33/events{/privacy}","received_events_url":"https://api.github.com/users/Murph33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Murph33/solidus","description":"Solidus, Rails eCommerce System","fork":true,"url":"https://api.github.com/repos/Murph33/solidus","forks_url":"https://api.github.com/repos/Murph33/solidus/forks","keys_url":"https://api.github.com/repos/Murph33/solidus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Murph33/solidus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Murph33/solidus/teams","hooks_url":"https://api.github.com/repos/Murph33/solidus/hooks","issue_events_url":"https://api.github.com/repos/Murph33/solidus/issues/events{/number}","events_url":"https://api.github.com/repos/Murph33/solidus/events","assignees_url":"https://api.github.com/repos/Murph33/solidus/assignees{/user}","branches_url":"https://api.github.com/repos/Murph33/solidus/branches{/branch}","tags_url":"https://api.github.com/repos/Murph33/solidus/tags","blobs_url":"https://api.github.com/repos/Murph33/solidus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Murph33/solidus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Murph33/solidus/git/refs{/sha}","trees_url":"https://api.github.com/repos/Murph33/solidus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Murph33/solidus/statuses/{sha}","languages_url":"https://api.github.com/repos/Murph33/solidus/languages","stargazers_url":"https://api.github.com/repos/Murph33/solidus/stargazers","contributors_url":"https://api.github.com/repos/Murph33/solidus/contributors","subscribers_url":"https://api.github.com/repos/Murph33/solidus/subscribers","subscription_url":"https://api.github.com/repos/Murph33/solidus/subscription","commits_url":"https://api.github.com/repos/Murph33/solidus/commits{/sha}","git_commits_url":"https://api.github.com/repos/Murph33/solidus/git/commits{/sha}","comments_url":"https://api.github.com/repos/Murph33/solidus/comments{/number}","issue_comment_url":"https://api.github.com/repos/Murph33/solidus/issues/comments{/number}","contents_url":"https://api.github.com/repos/Murph33/solidus/contents/{+path}","compare_url":"https://api.github.com/repos/Murph33/solidus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Murph33/solidus/merges","archive_url":"https://api.github.com/repos/Murph33/solidus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Murph33/solidus/downloads","issues_url":"https://api.github.com/repos/Murph33/solidus/issues{/number}","pulls_url":"https://api.github.com/repos/Murph33/solidus/pulls{/number}","milestones_url":"https://api.github.com/repos/Murph33/solidus/milestones{/number}","notifications_url":"https://api.github.com/repos/Murph33/solidus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Murph33/solidus/labels{/name}","releases_url":"https://api.github.com/repos/Murph33/solidus/releases{/id}","deployments_url":"https://api.github.com/repos/Murph33/solidus/deployments","created_at":"2016-01-26T22:50:39Z","updated_at":"2016-01-26T22:50:43Z","pushed_at":"2016-01-29T23:08:08Z","git_url":"git://github.com/Murph33/solidus.git","ssh_url":"git@github.com:Murph33/solidus.git","clone_url":"https://github.com/Murph33/solidus.git","svn_url":"https://github.com/Murph33/solidus","homepage":"http://solidus.io/","size":61585,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"solidusio:master","ref":"master","sha":"1103a0882d9e57ac814f323fc3ac12db400bde09","user":{"login":"solidusio","id":11045486,"avatar_url":"https://avatars.githubusercontent.com/u/11045486?v=3","gravatar_id":"","url":"https://api.github.com/users/solidusio","html_url":"https://github.com/solidusio","followers_url":"https://api.github.com/users/solidusio/followers","following_url":"https://api.github.com/users/solidusio/following{/other_user}","gists_url":"https://api.github.com/users/solidusio/gists{/gist_id}","starred_url":"https://api.github.com/users/solidusio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solidusio/subscriptions","organizations_url":"https://api.github.com/users/solidusio/orgs","repos_url":"https://api.github.com/users/solidusio/repos","events_url":"https://api.github.com/users/solidusio/events{/privacy}","received_events_url":"https://api.github.com/users/solidusio/received_events","type":"Organization","site_admin":false},"repo":{"id":30985840,"name":"solidus","full_name":"solidusio/solidus","owner":{"login":"solidusio","id":11045486,"avatar_url":"https://avatars.githubusercontent.com/u/11045486?v=3","gravatar_id":"","url":"https://api.github.com/users/solidusio","html_url":"https://github.com/solidusio","followers_url":"https://api.github.com/users/solidusio/followers","following_url":"https://api.github.com/users/solidusio/following{/other_user}","gists_url":"https://api.github.com/users/solidusio/gists{/gist_id}","starred_url":"https://api.github.com/users/solidusio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solidusio/subscriptions","organizations_url":"https://api.github.com/users/solidusio/orgs","repos_url":"https://api.github.com/users/solidusio/repos","events_url":"https://api.github.com/users/solidusio/events{/privacy}","received_events_url":"https://api.github.com/users/solidusio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solidusio/solidus","description":"Solidus, Rails eCommerce System","fork":false,"url":"https://api.github.com/repos/solidusio/solidus","forks_url":"https://api.github.com/repos/solidusio/solidus/forks","keys_url":"https://api.github.com/repos/solidusio/solidus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solidusio/solidus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solidusio/solidus/teams","hooks_url":"https://api.github.com/repos/solidusio/solidus/hooks","issue_events_url":"https://api.github.com/repos/solidusio/solidus/issues/events{/number}","events_url":"https://api.github.com/repos/solidusio/solidus/events","assignees_url":"https://api.github.com/repos/solidusio/solidus/assignees{/user}","branches_url":"https://api.github.com/repos/solidusio/solidus/branches{/branch}","tags_url":"https://api.github.com/repos/solidusio/solidus/tags","blobs_url":"https://api.github.com/repos/solidusio/solidus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solidusio/solidus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solidusio/solidus/git/refs{/sha}","trees_url":"https://api.github.com/repos/solidusio/solidus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solidusio/solidus/statuses/{sha}","languages_url":"https://api.github.com/repos/solidusio/solidus/languages","stargazers_url":"https://api.github.com/repos/solidusio/solidus/stargazers","contributors_url":"https://api.github.com/repos/solidusio/solidus/contributors","subscribers_url":"https://api.github.com/repos/solidusio/solidus/subscribers","subscription_url":"https://api.github.com/repos/solidusio/solidus/subscription","commits_url":"https://api.github.com/repos/solidusio/solidus/commits{/sha}","git_commits_url":"https://api.github.com/repos/solidusio/solidus/git/commits{/sha}","comments_url":"https://api.github.com/repos/solidusio/solidus/comments{/number}","issue_comment_url":"https://api.github.com/repos/solidusio/solidus/issues/comments{/number}","contents_url":"https://api.github.com/repos/solidusio/solidus/contents/{+path}","compare_url":"https://api.github.com/repos/solidusio/solidus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solidusio/solidus/merges","archive_url":"https://api.github.com/repos/solidusio/solidus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solidusio/solidus/downloads","issues_url":"https://api.github.com/repos/solidusio/solidus/issues{/number}","pulls_url":"https://api.github.com/repos/solidusio/solidus/pulls{/number}","milestones_url":"https://api.github.com/repos/solidusio/solidus/milestones{/number}","notifications_url":"https://api.github.com/repos/solidusio/solidus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solidusio/solidus/labels{/name}","releases_url":"https://api.github.com/repos/solidusio/solidus/releases{/id}","deployments_url":"https://api.github.com/repos/solidusio/solidus/deployments","created_at":"2015-02-18T20:41:58Z","updated_at":"2016-01-29T17:32:31Z","pushed_at":"2016-01-29T23:08:10Z","git_url":"git://github.com/solidusio/solidus.git","ssh_url":"git@github.com:solidusio/solidus.git","clone_url":"https://github.com/solidusio/solidus.git","svn_url":"https://github.com/solidusio/solidus","homepage":"http://solidus.io/","size":67140,"stargazers_count":788,"watchers_count":788,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":180,"mirror_url":null,"open_issues_count":100,"forks":180,"open_issues":100,"watchers":788,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/764"},"html":{"href":"https://github.com/solidusio/solidus/pull/764"},"issue":{"href":"https://api.github.com/repos/solidusio/solidus/issues/764"},"comments":{"href":"https://api.github.com/repos/solidusio/solidus/issues/764/comments"},"review_comments":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/764/comments"},"review_comment":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solidusio/solidus/pulls/764/commits"},"statuses":{"href":"https://api.github.com/repos/solidusio/solidus/statuses/c6feb7448d815ef20b2d01a785fca551791880ce"}}}}