From 10e0807ccef0b87ffbbd161b88f0bd8d16867541 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Sep 2014 13:49:20 +0000 Subject: [PATCH] Add context for 'Trash' string in media modal. props pavelevap. fixes #29739. Built from https://develop.svn.wordpress.org/trunk@29764 git-svn-id: http://core.svn.wordpress.org/trunk@29536 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media-template.php | 4 ++-- wp-includes/media.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 40233375ed..8299642c7d 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -417,7 +417,7 @@ function wp_print_media_templates() { <# if ( 'trash' === data.status ) { #> <# } else { #> - + <# } #> @@ -520,7 +520,7 @@ function wp_print_media_templates() { <# if ( 'trash' === data.status ) { #> <# } else { #> - + <# } #> diff --git a/wp-includes/media.php b/wp-includes/media.php index 73877bfb1d..7a39418f4a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -2937,7 +2937,7 @@ function wp_enqueue_media( $args = array() ) { 'noItemsFound' => __( 'No items found.' ), 'insertIntoPost' => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ), 'unattached' => __( 'Unattached' ), - 'trash' => __( 'Trash' ), + 'trash' => _x( 'Trash', 'noun' ), 'uploadedToThisPost' => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ), 'warnDelete' => __( "You are about to permanently delete this item.\n 'Cancel' to stop, 'OK' to delete." ), 'warnBulkDelete' => __( "You are about to permanently delete these items.\n 'Cancel' to stop, 'OK' to delete." ),