I18N: Add context for some Media Library filter strings:

* Audio
* Video
* Unattached

This allows for more homogeneous translations in languages where keeping a plural form is important.

Follow-up to [6910], [7397], [8901], [9556], [11749], [13100], [12110], [15491], [15578], [22743], [29426], [29625], [34256], [45651], [46437].

Props jdy68, audrasjb, SergeyBiryukov.
Fixes #54238.
Built from https://develop.svn.wordpress.org/trunk@51903


git-svn-id: http://core.svn.wordpress.org/trunk@51496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-10-12 16:44:01 +00:00
parent 2030b6e313
commit 1020306fe9
4 changed files with 5 additions and 5 deletions

View File

@ -151,7 +151,7 @@ class WP_Media_List_Table extends WP_List_Table {
); );
} }
$type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>'; $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . _x( 'Unattached', 'media items' ) . '</option>';
$type_links['mine'] = sprintf( $type_links['mine'] = sprintf(
'<option value="mine"%s>%s</option>', '<option value="mine"%s>%s</option>',

View File

@ -4456,7 +4456,7 @@ function wp_enqueue_media( $args = array() ) {
'allDates' => __( 'All dates' ), 'allDates' => __( 'All dates' ),
'noItemsFound' => __( 'No items found.' ), 'noItemsFound' => __( 'No items found.' ),
'insertIntoPost' => $post_type_object->labels->insert_into_item, 'insertIntoPost' => $post_type_object->labels->insert_into_item,
'unattached' => __( 'Unattached' ), 'unattached' => _x( 'Unattached', 'media items' ),
'mine' => _x( 'Mine', 'media items' ), 'mine' => _x( 'Mine', 'media items' ),
'trash' => _x( 'Trash', 'noun' ), 'trash' => _x( 'Trash', 'noun' ),
'uploadedToThisPost' => $post_type_object->labels->uploaded_to_this_item, 'uploadedToThisPost' => $post_type_object->labels->uploaded_to_this_item,

View File

@ -2939,7 +2939,7 @@ function get_post_mime_types() {
), ),
), ),
'audio' => array( 'audio' => array(
__( 'Audio' ), _x( 'Audio', 'file type group' ),
__( 'Manage Audio' ), __( 'Manage Audio' ),
/* translators: %s: Number of audio files. */ /* translators: %s: Number of audio files. */
_n_noop( _n_noop(
@ -2948,7 +2948,7 @@ function get_post_mime_types() {
), ),
), ),
'video' => array( 'video' => array(
__( 'Video' ), _x( 'Video', 'file type group' ),
__( 'Manage Video' ), __( 'Manage Video' ),
/* translators: %s: Number of video files. */ /* translators: %s: Number of video files. */
_n_noop( _n_noop(

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-51902'; $wp_version = '5.9-alpha-51903';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.