[openstreetmap/openstreetmap-website] Avoid using the zero key for pluralisation in English (PR #4077)

Andy Allan notifications at github.com
Wed Jul 5 13:48:54 UTC 2023


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
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4077

-- Commit Summary --

  * Avoid using the zero key for pluralisation in English

-- File Changes --

    M app/views/diary_entries/_diary_entry.html.erb (8)
    M app/views/issues/show.html.erb (6)
    M config/locales/en.yml (4)
    M test/lib/i18n_test.rb (19)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4077.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4077.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4077
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4077 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230705/a494614a/attachment.htm>


More information about the rails-dev mailing list