Make WordPress Core

Changeset 35901


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

I18N: Add missing context for 'Trash' strings.

Fixes #35054.

Location:
trunk/src/wp-admin/includes
Files:
3 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();'" : '';
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r35790 r35901  
    11801180                $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";
    11811181            elseif ( EMPTY_TRASH_DAYS )
    1182                 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
     1182                $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
    11831183            if ( 'trash' === $post->post_status || !EMPTY_TRASH_DAYS )
    11841184                $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently' ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>";
  • trunk/src/wp-admin/includes/meta-boxes.php

    r35790 r35901  
    335335    if ( current_user_can( 'delete_post', $post->ID ) )
    336336        if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
    337             echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Trash' ) . "</a>";
     337            echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>";
    338338        } else {
    339339            $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
Note: See TracChangeset for help on using the changeset viewer.