]> git.openstreetmap.org Git - rails.git/commit
Avoid using the zero key for pluralisation in English
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jul 2023 13:42:07 +0000 (14:42 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jul 2023 13:47:39 +0000 (14:47 +0100)
commitd58cae6ff68c54cba21d46c44d03e95589adf301
tree33b3b6fb2ed46861331e1760d10afa9098ebaeaf
parente66d0d232f94d92394a139d0c495d229254ff0a5
Avoid using the zero key for pluralisation in English

This makes it impossible to translate to other languages that use the
`zero:` key, e.g. for other numbers that end in zero.

An alternative approach would be possible in future, when ruby-i18n
and rails and translatewiki all have full support for `0:` and `1:` keys.

Fixes #3997
app/views/diary_entries/_diary_entry.html.erb
app/views/issues/show.html.erb
config/locales/en.yml
test/lib/i18n_test.rb