对于我的 Ruby on Rails (7) 应用程序,我有这种形式的语言环境 yaml 定义:
de:
activerecord:
models:
author:
one: AutorIn
other: AutorInnen
但是当我使用类似的东西时
pluralize(10, Author.model_name.human)
函数没有采用正确的复数形式——它应该说“10 AutorInnen”,但它说的是“10 Autors”?
也许使用计数而不是复数?这似乎对这些类似的问题有效: