WordPress.org

Make WordPress Core

Changeset 46385


Ignore:
Timestamp:
10/04/2019 07:57:08 PM (13 days ago)
Author:
ocean90
Message:

Networks and Sites: Improve newly added strings for i18n.

  • Remove unnecessary numbered placeholders.
  • Add context to "All" and "Spam" status.
  • Add translator comments.

Props pedromendonca.
Fixes #48210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r46261 r46385  
    220220
    221221        $statuses = array(
    222             'all'      => _n_noop( 'All <span class="count">(%s)</span>', 'All <span class="count">(%1$s)</span>' ),
    223             'public'   => _n_noop( 'Public <span class="count">(%s)</span>', 'Public <span class="count">(%1$s)</span>' ),
    224             'archived' => _n_noop( 'Archived <span class="count">(%1$s)</span>', 'Archived <span class="count">(%1$s)</span>' ),
    225             'mature'   => _n_noop( 'Mature <span class="count">(%1$s)</span>', 'Mature <span class="count">(%1$s)</span>' ),
    226             'spam'     => _n_noop( 'Spam <span class="count">(%1$s)</span>', 'Spam <span class="count">(%1$s)</span>' ),
    227             'deleted'  => _n_noop( 'Deleted <span class="count">(%1$s)</span>', 'Deleted <span class="count">(%1$s)</span>' ),
     222            /* translators: %s: Number of sites. */
     223            'all'      => _nx_noop(
     224                'All <span class="count">(%s)</span>',
     225                'All <span class="count">(%s)</span>',
     226                'sites'
     227            ),
     228
     229            /* translators: %s: Number of sites. */
     230            'public'   => _n_noop(
     231                'Public <span class="count">(%s)</span>',
     232                'Public <span class="count">(%s)</span>'
     233            ),
     234
     235            /* translators: %s: Number of sites. */
     236            'archived' => _n_noop(
     237                'Archived <span class="count">(%s)</span>',
     238                'Archived <span class="count">(%s)</span>'
     239            ),
     240
     241            /* translators: %s: Number of sites. */
     242            'mature'   => _n_noop(
     243                'Mature <span class="count">(%s)</span>',
     244                'Mature <span class="count">(%s)</span>'
     245            ),
     246
     247            /* translators: %s: Number of sites. */
     248            'spam'     => _nx_noop(
     249                'Spam <span class="count">(%s)</span>',
     250                'Spam <span class="count">(%s)</span>',
     251                'sites'
     252            ),
     253
     254            /* translators: %s: Number of sites. */
     255            'deleted'  => _n_noop(
     256                'Deleted <span class="count">(%s)</span>',
     257                'Deleted <span class="count">(%s)</span>'
     258            ),
    228259        );
    229260
Note: See TracChangeset for help on using the changeset viewer.