Fabiano Arruda
unread,Sep 9, 2009, 5:00:52 PM9/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Hello,
Im using this method and sometimes getting errors like this:
I18n::InvalidPluralizationData in Forums#show
Showing app/views/forums/show.html.erb where line #13 raised:
translation data {:one=>"1 minuto", :many=>"{{count}} minutos"} can
not be used with :count => 2
It only happens when using localization (I have the file, pt-br.yml
and its ok, I checked it for indentation and all ). if I set it for
the default language, or just remove the translation strings regarding
to datetime, it works.
Seems like the error happens only when dealing with differences in
minutes. for differences greater than 1 hour it works correctly.