WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/14/2019 02:46:10 PM (14 months ago)
Author:
SergeyBiryukov
Message:

I18N: Add context for theme filter strings in WP_MS_Themes_List_Table::get_views().

Props audrasjb.
Fixes #47695.

File:
1 edited

Legend:

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

    r45583 r45634  
    304304                    break;
    305305                case 'enabled':
    306                     $text = _n( 'Enabled <span class="count">(%s)</span>', 'Enabled <span class="count">(%s)</span>', $count );
     306                    $text = _nx( 'Enabled <span class="count">(%s)</span>', 'Enabled <span class="count">(%s)</span>', $count, 'themes' );
    307307                    break;
    308308                case 'disabled':
    309                     $text = _n( 'Disabled <span class="count">(%s)</span>', 'Disabled <span class="count">(%s)</span>', $count );
     309                    $text = _nx( 'Disabled <span class="count">(%s)</span>', 'Disabled <span class="count">(%s)</span>', $count, 'themes' );
    310310                    break;
    311311                case 'upgrade':
    312                     $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
     312                    $text = _nx( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count, 'themes' );
    313313                    break;
    314314                case 'broken':
    315                     $text = _n( 'Broken <span class="count">(%s)</span>', 'Broken <span class="count">(%s)</span>', $count );
     315                    $text = _nx( 'Broken <span class="count">(%s)</span>', 'Broken <span class="count">(%s)</span>', $count, 'themes' );
    316316                    break;
    317317            }
Note: See TracChangeset for help on using the changeset viewer.