[wp-trac] [WordPress Trac] #39660: Missing singular placeholder, needed for some languages on comments.php

WordPress Trac noreply at wordpress.org
Sat Jan 21 15:08:16 UTC 2017


#39660: Missing singular placeholder, needed for some languages on comments.php
---------------------------+------------------------------
 Reporter:  bplv           |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  4.7.1
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by bplv):

 I have found this via code sniffer which shows this report

 `Line: 31 ERROR Missing singular placeholder, needed for some languages.`
   See https://codex.wordpress.org/I18n_for_WordPress_Developers#Plurals

 According to codex this is the proper placeholder,

 {{{#!php
 <?php
 printf( esc_html( _n( 'We deleted %d spam message.', 'We deleted %d spam
 messages.', $count, 'my-text-domain'  ) ), $count );
 }}}

 Which is not the case in most of the bundled themes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39660#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list