Make WordPress Core


Ignore:
Timestamp:
04/20/2010 02:54:36 PM (15 years ago)
Author:
nbachiyski
Message:

Trash should always be in titlecase for consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r14139 r14167  
    7575            foreach( (array) $post_ids as $post_id ) {
    7676                if ( !current_user_can($post_type_object->delete_cap, $post_id) )
    77                     wp_die( __('You are not allowed to move this item to the trash.') );
     77                    wp_die( __('You are not allowed to move this item to the Trash.') );
    7878
    7979                if ( !wp_trash_post($post_id) )
    80                     wp_die( __('Error in moving to trash...') );
     80                    wp_die( __('Error in moving to Trash.') );
    8181
    8282                $trashed++;
     
    8888            foreach( (array) $post_ids as $post_id ) {
    8989                if ( !current_user_can($post_type_object->delete_cap, $post_id) )
    90                     wp_die( __('You are not allowed to restore this item from the trash.') );
     90                    wp_die( __('You are not allowed to restore this item from the Trash.') );
    9191
    9292                if ( !wp_untrash_post($post_id) )
    93                     wp_die( __('Error in restoring from trash...') );
     93                    wp_die( __('Error in restoring from Trash.') );
    9494
    9595                $untrashed++;
     
    205205
    206206if ( isset($_GET['untrashed']) && (int) $_GET['untrashed'] ) {
    207     printf( _n( 'Item restored from the trash.', '%s items restored from the trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) );
     207    printf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) );
    208208    unset($_GET['undeleted']);
    209209}
     
    263263
    264264<p class="search-box">
    265     <label class="screen-reader-text" for="post-search-input"><?php printf( __( 'Search %s' ), $post_type_object->label ); ?>:</label>
     265    <label class="screen-reader-text" for="post-search-input"><?php printf( _x('Search %s', '%s: post type name'), $post_type_object->label ); ?>:</label>
    266266    <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
    267     <input type="submit" value="<?php echo esc_attr( sprintf( __( 'Search %s' ), $post_type_object->label ) ); ?>" class="button" />
     267    <input type="submit" value="<?php echo esc_attr( sprintf( _x('Search %s', '%s: post type name'), $post_type_object->label ) ); ?>" class="button" />
    268268</p>
    269269
Note: See TracChangeset for help on using the changeset viewer.