Formatting plural on Shapado and Open Street Map
Appearance
Fragment of a discussion from Support/LiquidThreads
> Shouldn't the messages have '0' instead of 'zero'?
No.
> You should always use all n forms if your language has n forms. No more, no less.
If an English message uses 'zero' do all languages have to use 'zero', regardless of whether 'zero' is defined for their language or not?
All languages support a key of 'zero' which is handled outside of the language specific pluralizers as seen here:
https://github.com/svenfuchs/i18n/blob/master/lib/i18n/backend/pluralization.rb#L34
So if the value is 0 and a key of "zero" exists then it is used, otherwise the language specific pluralizer is called.