Pluralization does not work? #2

jensb opened this Issue Aug 13, 2011 · 0 comments

2 participants



your post on Stackoverflow has saved my day! Thank you for implementing this as a gem.

However I think I have found a bug: Pluralization (using :count) does not work. If I have something like

  one: You have %{foobar_link:one Foobar} pending.
  other: You have %{foobar_link:%{count} Foobars} pending.

and then use

<%= t( 'foobar', :count => 4, :foobar_link => foobar_path(foobar) ) %>

I get

oneYou have _one Foobar_ pending.otherYou have _4 Foobars_ pending.

in my template (where the ... is the correct link).

Do you have an idea why this happens?

Thank you! :)


@iGEL iGEL was assigned Aug 14, 2011
@iGEL iGEL added a commit that closed this issue Dec 14, 2011
@iGEL Handle pluralization (Fixes #2) 4ff148a
@iGEL iGEL closed this in 4ff148a Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment