pluralize and i18n in Rails

tkhobbes

For my Ruby on Rails (7) app, I have locale yaml definitions of this form:

de:
  activerecord:
    models:
      author:
        one: AutorIn
        other: AutorInnen

But when I use something like

pluralize(10, Author.model_name.human)

the function doesn't take the correct plural form - it should say "10 AutorInnen", but it says "10 Autors"?

Oli

Maybe use count instead of pluralize? This is what seems to have worked for these similar questions:

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related