[wp-trac] [WordPress Trac] #48210: I18n: consistent strings variables across admin and network sub-projects

WordPress Trac noreply at wordpress.org
Fri Oct 4 09:03:21 UTC 2019


#48210: I18n: consistent strings variables across admin and network sub-projects
---------------------------+-----------------------------
 Reporter:  pedromendonca  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  I18N           |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 As already exist in 'admin', there is no need to numbered variables $1$s
 in a single variable string. `$1$s` -> `%s`

 Example already existent in 'admin' sub-project:
 https://build.trac.wordpress.org/browser/trunk/wp-admin/includes/class-wp-
 comments-list-table.php#L248

 {{{
 /* translators: %s: Number of comments. */
 'spam'      => _nx_noop(
         'Spam <span class="count">(%s)</span>',
         'Spam <span class="count">(%s)</span>',
         'comments'
 ),

 /* translators: %s: Number of comments. */
 'trash'     => _nx_noop(
         'Trash <span class="count">(%s)</span>',
         'Trash <span class="count">(%s)</span>',
         'comments'
 ),
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48210>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list