[wp-trac] [WordPress Trac] #57588: The picking of plural form #0 is hard-coded for singular strings
WordPress Trac
noreply at wordpress.org
Wed Nov 6 15:00:11 UTC 2024
#57588: The picking of plural form #0 is hard-coded for singular strings
-------------------------------+------------------------------
Reporter: jaanise | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 6.1
Severity: minor | Resolution:
Keywords: 2nd-opinion close | Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):
* keywords: => 2nd-opinion close
* focuses: template =>
Comment:
> Although asking for a not-counted string but having count-dependable
translations is not a correct situation in itself, it can easily occur
also due sloppy programming in third party themes or plugins, or maybe
occur during changes to translation files or translatable strings.
That is indeed true. I have even seen this in big plugins such as
WooCommerce.
> If a not-counted message is requested and the available translation
turns out to be count-dependable, translate should probably either forward
the call to translate_plural passing count 1, or return the untranslated
fallback or an empty string (with a notice) if this is considered as a
non-existing translation.
Because of the above, making this change sounds like a breaking change to
me at this point, so I am inclined to close this issue as a wontfix.
Curious to hear other thoughts though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57588#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list