New: Support for `zero` pluralization option

By Edouard on April 27, 2011

The Ruby i18n plugin used by Ruby on Rails supports using a zero pluralization option for all locales.

The zero pluralization option is useful because it allows to write segments like this one in English:

en:
  friendship:
    zero: "Nobody is your friend"
    one: "One person is your friend"
    other: "%{count} people are your friends"

“Nobody is your friend” reads much better than “0 people are your friends”, doesn’t it?

Web Translate It now allows you to use the zero pluralization option directly from the web interface.

Click on “Add zero rule” to add a new textarea for zero option.

Type a translation for the zero rule and that’s it! Your language files will be generated with the zero option whenever you use it.