{"action":"closed","issue":{"url":"https://api.github.com/repos/mongoid/mongoid/issues/4107","labels_url":"https://api.github.com/repos/mongoid/mongoid/issues/4107/labels{/name}","comments_url":"https://api.github.com/repos/mongoid/mongoid/issues/4107/comments","events_url":"https://api.github.com/repos/mongoid/mongoid/issues/4107/events","html_url":"https://github.com/mongoid/mongoid/issues/4107","id":90997741,"number":4107,"title":"Error message translation with i18n","user":{"login":"vonTronje","id":1652244,"avatar_url":"https://avatars.githubusercontent.com/u/1652244?v=3","gravatar_id":"","url":"https://api.github.com/users/vonTronje","html_url":"https://github.com/vonTronje","followers_url":"https://api.github.com/users/vonTronje/followers","following_url":"https://api.github.com/users/vonTronje/following{/other_user}","gists_url":"https://api.github.com/users/vonTronje/gists{/gist_id}","starred_url":"https://api.github.com/users/vonTronje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vonTronje/subscriptions","organizations_url":"https://api.github.com/users/vonTronje/orgs","repos_url":"https://api.github.com/users/vonTronje/repos","events_url":"https://api.github.com/users/vonTronje/events{/privacy}","received_events_url":"https://api.github.com/users/vonTronje/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mongoid/mongoid/milestones/75","html_url":"https://github.com/mongoid/mongoid/milestones/5.0.1","labels_url":"https://api.github.com/repos/mongoid/mongoid/milestones/75/labels","id":1137998,"number":75,"title":"5.0.1","description":"Release for non-critical issues blocking 5.0.0.","creator":{"login":"durran","id":9030,"avatar_url":"https://avatars.githubusercontent.com/u/9030?v=3","gravatar_id":"","url":"https://api.github.com/users/durran","html_url":"https://github.com/durran","followers_url":"https://api.github.com/users/durran/followers","following_url":"https://api.github.com/users/durran/following{/other_user}","gists_url":"https://api.github.com/users/durran/gists{/gist_id}","starred_url":"https://api.github.com/users/durran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durran/subscriptions","organizations_url":"https://api.github.com/users/durran/orgs","repos_url":"https://api.github.com/users/durran/repos","events_url":"https://api.github.com/users/durran/events{/privacy}","received_events_url":"https://api.github.com/users/durran/received_events","type":"User","site_admin":false},"open_issues":216,"closed_issues":5,"state":"open","created_at":"2015-05-28T13:46:28Z","updated_at":"2015-07-19T10:18:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-25T15:34:55Z","updated_at":"2015-07-19T10:18:49Z","closed_at":"2015-07-19T10:18:49Z","body":"When trying to translate validation error messages with i18n I was unable to change the titles for the 'problem', 'summary' and 'resolution' parts. The content can be easily changed, the titles however are hardcoded in [mongoid_error.rb] (https://github.com/mongoid/mongoid/blob/master/lib/mongoid/errors/mongoid_error.rb#L25-L27).\r\nSadly this makes translations into other languages weird.\r\n\r\nI think it would be useful to allow setting these values via i18n locales as well. If you agree I'd be happy to supply a pull request.\r\n\r\nCheers\r\nHagen"}}