From d96e75674b63c09196e0c82732bb6377408b1cfd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 12 Oct 2021 16:42:19 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@51903 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-media-list-table.php | 2 +- src/wp-includes/media.php | 2 +- src/wp-includes/post.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php index cc27e80324..d425bccfbf 100644 --- a/src/wp-admin/includes/class-wp-media-list-table.php +++ b/src/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/src/wp-includes/media.php b/src/wp-includes/media.php index 43795c9084..6e7f66760f 100644 --- a/src/wp-includes/media.php +++ b/src/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/src/wp-includes/post.php b/src/wp-includes/post.php index 2bcd72c6d4..b13942002a 100644 --- a/src/wp-includes/post.php +++ b/src/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(