[openstreetmap/openstreetmap-website] GPX traces - Application error (#2645)

Tom Hughes notifications at github.com
Mon Jun 8 07:33:23 UTC 2020

The pluralization rules are defined by https://github.com/svenfuchs/rails-i18n/tree/master/rails/pluralization and specifically in this case by https://github.com/svenfuchs/rails-i18n/blob/master/rails/pluralization/cs.rb which shows it is driven by the `RailsI18n::Pluralization::WestSlavic` class which is defined by https://github.com/svenfuchs/rails-i18n/blob/master/lib/rails_i18n/common_pluralizations/west_slavic.rb which uses `one`, `few` and `other`.

It does in fact also support `zero` because they all support that as it's processed separately before any locale specific pluralizer is invoked.

So the difference seems to be that you have an additional rule for non-integer values? But still the result was to accept a translation without the `other` key which you do also have?

I do plan to try and write a test to at least check that all languages have `other` for all pluralizable translations as I believe that is used as a fallback so it's presence will at least avoid exceptions.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200608/64bb5c69/attachment-0001.htm>

More information about the rails-dev mailing list