[wp-meta] [Making WordPress.org] #1322: Missing plural forms for '%d people say it works.'

Making WordPress.org noreply at wordpress.org
Fri Oct 9 02:40:22 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:
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  invalid =>


 Replying to [comment:1 coffee2code]:
 > You can load an individual plugin's page and see the output. The JS has
 to decide which plural form to use, so it needs both strings of each type.

 I see the correct form in the page source, but then it gets replaced with
 an incorrect form from JS.

 So essentially there's no plural forms support at all, and the correct
 string for initial input is misleading. Not all languages have only two
 plural forms :)

 The JS also has another bug: if there's exactly 1 vote, it prints `%s`
 instead of the number (see the [attachment:meta-1322.png screenshot]),
 that's because it replaces `%d`, but the singular string has `%s`.

 * Could we use something like [https://slexaxton.github.io/Jed/ Jed] for
 proper plural forms support?
 * If not, could we at least make it so that the correct initial output
 doesn't get replaced with an incorrect one right away, but only after some
 other version is selected from the dropdown?

Ticket URL: <https://meta.trac.wordpress.org/ticket/1322#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list