[wp-meta] [Making WordPress.org] #1322: Missing plural forms for '%d people say it works.'
Making WordPress.org
noreply at wordpress.org
Wed Oct 14 18:40:17 UTC 2015
#1322: Missing plural forms for '%d people say it works.'
-----------------------------+------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect | Status: reopened
Priority: normal | Component: Plugin Directory
Resolution: | Keywords:
-----------------------------+------------------------------
Comment (by coffee2code):
Replying to [comment:2 SergeyBiryukov]:
> The JS also has another bug: if there's exactly 1 vote, it prints %s
instead of the number (see the screenshot), that's because it replaces
%d, but the singular string has %s.
This is a result of the translation. From the code snippet I provided
above, the original text for a single vote for "works" is: `1 person says
it works`
The translation (as can be seen for
https://ru.wordpress.org/plugins/jetpack/) is
`%s сообщение, что работает`
([https://translate.wordpress.org/projects/meta/plugins/ru/default?page=14
ref]).
Had the translation used `%d` instead of `%s`, the number `1` would have
been substituted in. That doesn't solve the plural support issue, but it
explains the "bug" of seeing `%s`.
> Could we use something like Jed for proper plural forms support?
Jed would have to be part of a broader discussion for w.org, and possibly
more when everything moves to WP. Short of using Jed, are there any
suggestions you have for supporting more than 2 plural forms in JS?
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1322#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list