{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/1164","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1164/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1164/events","html_url":"https://github.com/elixir-lang/ecto/issues/1164","id":123440705,"number":1164,"title":"Get validation pluralization right by default?","user":{"login":"henrik","id":216,"avatar_url":"https://avatars.githubusercontent.com/u/216?v=3","gravatar_id":"","url":"https://api.github.com/users/henrik","html_url":"https://github.com/henrik","followers_url":"https://api.github.com/users/henrik/followers","following_url":"https://api.github.com/users/henrik/following{/other_user}","gists_url":"https://api.github.com/users/henrik/gists{/gist_id}","starred_url":"https://api.github.com/users/henrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrik/subscriptions","organizations_url":"https://api.github.com/users/henrik/orgs","repos_url":"https://api.github.com/users/henrik/repos","events_url":"https://api.github.com/users/henrik/events{/privacy}","received_events_url":"https://api.github.com/users/henrik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-22T08:49:08Z","updated_at":"2015-12-22T11:56:28Z","closed_at":null,"body":"I noticed in https://github.com/rrrene/elixirstatus-web/pull/31/files#diff-a7ff7e3b7047e2bbdc4c9c51a61f908aR40 that the default translations seem to say things like \"should be %{count} character(s)\".\r\n\r\nTo my eyes, \"%{count} foo(s)\" makes a site look a bit sloppy, so I'd love for us to pluralize it properly by default. But I wanted to request comments before I look into changing the code, since there could be good reasons to leave it.\r\n\r\ncc @whatyouhide "},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/166594545","html_url":"https://github.com/elixir-lang/ecto/issues/1164#issuecomment-166594545","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1164","id":166594545,"user":{"login":"henrik","id":216,"avatar_url":"https://avatars.githubusercontent.com/u/216?v=3","gravatar_id":"","url":"https://api.github.com/users/henrik","html_url":"https://github.com/henrik","followers_url":"https://api.github.com/users/henrik/followers","following_url":"https://api.github.com/users/henrik/following{/other_user}","gists_url":"https://api.github.com/users/henrik/gists{/gist_id}","starred_url":"https://api.github.com/users/henrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrik/subscriptions","organizations_url":"https://api.github.com/users/henrik/orgs","repos_url":"https://api.github.com/users/henrik/repos","events_url":"https://api.github.com/users/henrik/events{/privacy}","received_events_url":"https://api.github.com/users/henrik/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T11:56:28Z","updated_at":"2015-12-22T11:56:28Z","body":"My thinking was that it would be nice for the default gettext extraction to get it right, but I guess that could be difficult to achieve if Ecto owns the default strings but also doesn't know about pluralisation.\r\n\r\nI do agree it doesn't seem worthwhile to implement parallel pluralisation.\r\n\r\nI wonder if it could make sense for phoenix_ecto to provide pluralised default values for gettext. Haven't dug into the code.\r\n\r\nIt's not unreasonable to leave the \"foo(s)\" defaults, either if there's no good way around it. I just don't love the idea of everyone getting defaults that look bad (to me)."}}