[openstreetmap/openstreetmap-website] translatewiki.net: error saving plural string with key "Browse.way.nodes count" (#2897)
Mikkel Kirkgaard Nielsen
notifications at github.com
Tue Oct 20 13:50:45 UTC 2020
translatewiki.net displays an error and disallows saving when editing the current plural object of [Browse.way.nodes count](https://github.com/openstreetmap/openstreetmap-website/blob/bb2ffab9ec0ce6ff4c2ee69ddfa57e4f75963685/config/locales/en.yml#L274-L275) with its only member being "other":
https://github.com/openstreetmap/openstreetmap-website/blob/bb2ffab9ec0ce6ff4c2ee69ddfa57e4f75963685/config/locales/en.yml#L273-L276
Below are screen-shot of the [inline editor for the Danish translation](https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=browse.way.nodes_count&group=out-osm-site&language=da&filter=&optional=1&action=translate) showing the warning. Using [the full editor](https://translatewiki.net/w/i.php?title=Osm:Browse.way.nodes_count/da&action=edit) doesn't display any error/warning but silently discards the save.
The [All Translations page for the key](https://translatewiki.net/wiki/Special:Translations?message=Osm%3ABrowse.way.nodes+count&namespace=1222) show that some translations have been made without "one" (probably from outside of translatewiki.net?) while others have added a "one" member and some also "few" and "many" members.
This seems to be the only plural string without a "one".
# Screen-shots
In-line editor in the default view after translating the English string, not able to save/publish.

Adding a "one" member with some value enables save/publish:

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2897
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201020/8038aeeb/attachment-0001.htm>
More information about the rails-dev
mailing list