Opened 6 years ago
Closed 6 years ago
#47695 closed enhancement (fixed)
i18n/multisite: Contextualize strings in theme update screen
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
In wp-admin/includes/class-wp-ms-themes-list-table.php
file, under get_views
function, only the first translatable screen is contextualized. Then, we have a gender issue in fr_FR with the other translatable strings. Thant would be nice to add a context to the other items as well.
switch ( $type ) {
case 'all':
$text = _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $count, 'themes' );
break;
case 'enabled':
$text = _n( 'Enabled <span class="count">(%s)</span>', 'Enabled <span class="count">(%s)</span>', $count );
break;
case 'disabled':
$text = _n( 'Disabled <span class="count">(%s)</span>', 'Disabled <span class="count">(%s)</span>', $count );
break;
case 'upgrade':
$text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count );
break;
case 'broken':
$text = _n( 'Broken <span class="count">(%s)</span>', 'Broken <span class="count">(%s)</span>', $count );
break;
}
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Add some context to theme update table strings