[glotpress-updates] [GlotPress] #514: _n() strings should always include a placeholder

GlotPress noreply at wordpress.org
Thu Nov 12 13:12:44 UTC 2015

#514: _n() strings should always include a placeholder
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Keywords:  has-patch       |
 Strings like this one cause unnecessary warnings about missing
 placeholders in translation:
 sprintf( _n( 'One translation approved.', '%d translations approved.', $ok
 ), $ok );

 It's also an incorrect usage of `_n()`, because `'One item'` is not
 guaranteed to be used for exactly one item, but we treat it like it is.

 See [https://core.trac.wordpress.org/ticket/28502#comment:23
 #28502#comment:23], [WP31941], and #WP34308 for WordPress core, and
 [https://buddypress.trac.wordpress.org/ticket/6368 #BP6368] for

Ticket URL: <https://glotpress.trac.wordpress.org/ticket/514>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'

More information about the glotpress-updates mailing list