Make WordPress Core


Ignore:
Timestamp:
12/13/2015 07:02:30 PM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add missing context for 'Trash' strings.

Fixes #35054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r35752 r35901  
    128128                '<option value="trash"%s>%s</option>',
    129129                selected( 'trash' === $filter, true, false ),
    130                 __( 'Trash' )
     130                _x( 'Trash', 'attachment filter' )
    131131            );
    132132        }
     
    145145                $actions['delete'] = __( 'Delete Permanently' );
    146146            } else {
    147                 $actions['trash'] = __( 'Trash' );
     147                $actions['trash'] = _x( 'Trash', 'verb' );
    148148            }
    149149        } else {
     
    637637            if ( current_user_can( 'delete_post', $post->ID ) )
    638638                if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
    639                     $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
     639                    $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
    640640                } else {
    641641                    $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
     
    653653                    $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
    654654                elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
    655                     $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
     655                    $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
    656656                if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
    657657                    $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';
Note: See TracChangeset for help on using the changeset viewer.