[openstreetmap/openstreetmap-website] Separate translations for "zero" and "zero like numbers" (Issue #3997)

Andy Allan notifications at github.com
Sun Apr 2 09:05:20 UTC 2023


> Well it's not something we can do on our own - it's the i18n library that decides how to map counts to labels.

I think we can do it ourselves like:

```ruby
if count == 0
  t '.no_whatevers'
else
  t '.whatevers', :count => count
end
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3997#issuecomment-1493272759
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3997/1493272759 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230402/832966b7/attachment-0001.htm>


More information about the rails-dev mailing list