[openstreetmap/openstreetmap-website] Cannot upload correct translation (Issue #3997)
Niklas Laxström
notifications at github.com
Sun Apr 2 07:47:41 UTC 2023
This is OSM problem in my opinion, and I believe I have reported this earlier already. The `zero` form should not be used in English. If you look at for example Latvian at https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_plural_rules.html you can see that the `zero` form is not just number 0.
For most languages this is not a problem, but for languages like Latvian, the translation is either wrong or it is impossible to provide translation for "no X".
This can be resolved in two ways:
* Have a separate message when N is 0. This works for all languages, though it is a bit more work.
* Hack the I18n library to add support for explicit integer forms. This was done in MediaWiki. Then you can replace `zero` form with `0` form.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3997#issuecomment-1493257298
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3997/1493257298 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230402/23dabf15/attachment-0001.htm>
More information about the rails-dev
mailing list