[wp-meta] [Making WordPress.org] #5377: Plural form with missing plural translation results in blank string
Making WordPress.org
noreply at wordpress.org
Mon Aug 17 16:22:09 UTC 2020
#5377: Plural form with missing plural translation results in blank string
--------------------------------------+--------------------
Reporter: johnbillion | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Keywords:
--------------------------------------+--------------------
A string in a plugin of mine was translated into a few languages prior to
me converting it to a pluralised string. It went from using `_x()` to
using `_nx()`.
Some translations therefore exist for the singular form but not the plural
forms. The effect this has is that the plural forms are empty strings, and
these empty strings get used as for the plural forms in the plugin meaning
users cannot see the text.
Here is the `en_GB` translation for one of the strings. Note the `Plural`
tab contains no translation.
https://translate.wordpress.org/projects/wp-plugins/query-monitor/stable
/en-
gb/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=3336653&filters%5Btranslation_id%5D=45095580
I'm not sure if this is something that should be fixed at the point where
the translation is packaged, or in WordPress at the point where the plural
form is chosen.
Thoughts?
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5377>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list