Forum: Ruby on Rails i18n and count question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marcelo B. (Guest)
on 2009-05-28 21:34
(Received via mailing list)

What is the proper way to handle situations where you need
pluralization with and without adding the count?

The best I could think of is to write it twice:

  one: 'item'
  other: 'items'

  one: 'one item'
  other: '{{count}} items'

It's not very DRY.

I guess there should be a better way of doing. How do you handle this

This topic is locked and can not be replied to.