iGEL / it

A helper for links and other html tags in your translations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pluralization does not work?

jensb opened this issue · comments

Hello,

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

foobar:
  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! :)

Regards
Jens