amatsuda/kaminari — pull request #352 by pavolzbell (2013-02-03 02:39:43+00:00)
Title: Localize entry_name in page_entries_info helper

Hi, I'm having trouble localizing the ```entry_name``` when using the ```page_entries_info``` helper.

config/locales/sk.yml

```ruby
sk:
helpers:
more_pages:
display_entries: "Zobrazuje sa %{total} %{entry_name}."
judge:
one: "sudca"
few: "sudcovia"
other: "sudcov"
```

In my views I would like to have:

```ruby
<%= page_entries_info @judges %>
```

to produce ```"Zobrazuje sa 10 sudcov."```, but it always outputs ```"Zobrazuje sa 10 judges."```, I've tried some things, like this:

```ruby
<%= page_entries_info @judges, entry_name: t(:judge, count: @judges.count) %>
```

but nothing seems to work. Any suggestions?

Then I looked at the code and I think my commit pretty much solves the thing.