{"action":"created","issue":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/586","labels_url":"https://api.github.com/repos/amatsuda/kaminari/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/amatsuda/kaminari/issues/586/comments","events_url":"https://api.github.com/repos/amatsuda/kaminari/issues/586/events","html_url":"https://github.com/amatsuda/kaminari/issues/586","id":39607829,"number":586,"title":"Pluralized entry_names return wrong plural when translated / Use human(count: n) instead of pluralize?","user":{"login":"thirdsun","id":684393,"avatar_url":"https://avatars.githubusercontent.com/u/684393?v=3","gravatar_id":"","url":"https://api.github.com/users/thirdsun","html_url":"https://github.com/thirdsun","followers_url":"https://api.github.com/users/thirdsun/followers","following_url":"https://api.github.com/users/thirdsun/following{/other_user}","gists_url":"https://api.github.com/users/thirdsun/gists{/gist_id}","starred_url":"https://api.github.com/users/thirdsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thirdsun/subscriptions","organizations_url":"https://api.github.com/users/thirdsun/orgs","repos_url":"https://api.github.com/users/thirdsun/repos","events_url":"https://api.github.com/users/thirdsun/events{/privacy}","received_events_url":"https://api.github.com/users/thirdsun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/amatsuda/kaminari/labels/Feature%20Request","name":"Feature Request","color":"0b02e1"},{"url":"https://api.github.com/repos/amatsuda/kaminari/labels/Rails/ActionView","name":"Rails/ActionView","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-08-06T10:21:09Z","updated_at":"2015-03-10T09:20:19Z","closed_at":null,"body":"Maybe I'm doing something wrong here, but I'm trying show page_entries_info on a localized page. I defined my translation in /config/locales/de.yml:\r\n\r\n    de:\r\n      activerecord:\r\n        models:\r\n          product:\r\n            one: \"Artikel\"\r\n            other: \"Artikel\"\r\n    \r\n      ...\r\n    \r\n      helpers:\r\n        page_entries_info:\r\n          one_page:\r\n            display_entries:\r\n              zero: \"Keine %{entry_name} gefunden\"\r\n              one: \"<b>1</b> %{entry_name} gefunden\"\r\n              other: \"Displaying <b>all %{count}</b> %{entry_name}\"\r\n          more_pages:\r\n            display_entries: \"Zeige %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> von <b>%{total}</b>\"\r\n\r\nInstead of using the plural I set for the german version of the products model, I just get Rails' best guess which is \"Artikels\" and of course wrong. It is my understanding that this is due to Kaminari's use of the pluralize method, which doesn't seem to play nice with translations:  https://github.com/amatsuda/kaminari/blob/master/lib/kaminari/helpers/action_view_extension.rb#L90\r\n\r\nWould it make sense to use the human method with a count parameter instead? \r\n\r\n    entry_name = entry_name.human(count: collection.total_count)\r\n\r\nWhen using human(count: n) instead of pluralize my translated plurals are fine. \r\n\r\nOr am I missing something very obvious here?"},"comment":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/comments/78019106","html_url":"https://github.com/amatsuda/kaminari/issues/586#issuecomment-78019106","issue_url":"https://api.github.com/repos/amatsuda/kaminari/issues/586","id":78019106,"user":{"login":"cuihq","id":5662489,"avatar_url":"https://avatars.githubusercontent.com/u/5662489?v=3","gravatar_id":"","url":"https://api.github.com/users/cuihq","html_url":"https://github.com/cuihq","followers_url":"https://api.github.com/users/cuihq/followers","following_url":"https://api.github.com/users/cuihq/following{/other_user}","gists_url":"https://api.github.com/users/cuihq/gists{/gist_id}","starred_url":"https://api.github.com/users/cuihq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuihq/subscriptions","organizations_url":"https://api.github.com/users/cuihq/orgs","repos_url":"https://api.github.com/users/cuihq/repos","events_url":"https://api.github.com/users/cuihq/events{/privacy}","received_events_url":"https://api.github.com/users/cuihq/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T09:20:19Z","updated_at":"2015-03-10T09:20:19Z","body":":+1: "}}