[wp-trac] [WordPress Trac] #13651: Problem with plural form in comments_number

WordPress Trac noreply at wordpress.org
Wed Jul 6 14:45:56 UTC 2016

#13651: Problem with plural form in comments_number
 Reporter:  pavelevap         |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  4.6
Component:  I18N              |     Version:  3.0
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


 In [changeset:"37987"]:
 #!CommitTicketReference repository="" revision="37987"
 I18N: Introduce an on/off switch for locales where comment number needs to
 be declined.

 When enabled, the switch would override the theme's pseudo-plural `'%
 Comments'` string with a correct form of `_n( '%s Comment', '%s Comments',
 $number )`.

 Historically, `comments_popup_link()` and `get_comments_number_text()` did
 not support plural forms and used a pseudo-plural style instead, so some
 locales were forced to come up with workarounds to display the number of
 comments in their language correctly.

 This change should make those functions more i18n-friendly.

 Fixes #13651.

Ticket URL: <https://core.trac.wordpress.org/ticket/13651#comment:68>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list