[openstreetmap/openstreetmap-website] Incorrect translation choice time_ago for 21 hours ago (Issue #5878)

Andy Allan notifications at github.com
Thu Apr 3 09:48:26 UTC 2025


gravitystorm left a comment (openstreetmap/openstreetmap-website#5878)

> Can `%{count}` be anything other that 1 in "less than %{count} second ago"?

https://github.com/rails/rails/blob/3235827585d87661942c91bc81f64f56d710f0b2/actionview/lib/action_view/helpers/date_helper.rb#L114-L116

For `:less_than_x_seconds` the only values of `count` that are used are 5, 10 and 20. It's unknown to me if any language uses the `:one` form for 5, 10 or 20. It seems unlikely. 

However, it would be a very hard edge-case to code into Translatewiki to know that the `:one` key isn't needed for this specific translation! So it's probably easier to treat it as normal, and require the `%{count}` placeholder anyway, since it's needed in all the other translations.




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

Message ID: <openstreetmap/openstreetmap-website/issues/5878/2775123925 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250403/147a8775/attachment.htm>


More information about the rails-dev mailing list