First of all, you need to stop using .pluralize . It uses Inflector (which is mainly used for internal Rails elements, for example, fortune telling table names for model sheets →).
Sheet.model_name.human # => "Beleg" "Beleg".pluralize # => "Belegs"
What you need to do is use the parameter :count .
Sheet.model_name.human(:count => 2) # => "Belege"
This requires you to modify your de.yml as such:
de: ... activerecord: ... models: sheet: one: Beleg other: Belege
Marcel Jackwerth May 30 '11 at 18:40 2011-05-30 18:40
source share