From 1020306fe96172a74532378bf1d4e79da67e8b4b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 12 Oct 2021 16:44:01 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-media-list-table.php | 2 +- wp-includes/media.php | 2 +- wp-includes/post.php | 4 ++-- wp-includes/version.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index cc27e80324..d425bccfbf 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -151,7 +151,7 @@ class WP_Media_List_Table extends WP_List_Table { ); } - $type_links['detached'] = ''; + $type_links['detached'] = ''; $type_links['mine'] = sprintf( '', diff --git a/wp-includes/media.php b/wp-includes/media.php index 43795c9084..6e7f66760f 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -4456,7 +4456,7 @@ function wp_enqueue_media( $args = array() ) { 'allDates' => __( 'All dates' ), 'noItemsFound' => __( 'No items found.' ), 'insertIntoPost' => $post_type_object->labels->insert_into_item, - 'unattached' => __( 'Unattached' ), + 'unattached' => _x( 'Unattached', 'media items' ), 'mine' => _x( 'Mine', 'media items' ), 'trash' => _x( 'Trash', 'noun' ), 'uploadedToThisPost' => $post_type_object->labels->uploaded_to_this_item, diff --git a/wp-includes/post.php b/wp-includes/post.php index 2bcd72c6d4..b13942002a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2939,7 +2939,7 @@ function get_post_mime_types() { ), ), 'audio' => array( - __( 'Audio' ), + _x( 'Audio', 'file type group' ), __( 'Manage Audio' ), /* translators: %s: Number of audio files. */ _n_noop( @@ -2948,7 +2948,7 @@ function get_post_mime_types() { ), ), 'video' => array( - __( 'Video' ), + _x( 'Video', 'file type group' ), __( 'Manage Video' ), /* translators: %s: Number of video files. */ _n_noop( diff --git a/wp-includes/version.php b/wp-includes/version.php index 06914cf4a6..64a19dd2c7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.