Make WordPress Core


Ignore:
Timestamp:
04/01/2010 08:14:26 PM (15 years ago)
Author:
markjaquith
Message:

Use correct post type label in a few key places.

File:
1 edited

Legend:

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

    r13841 r13916  
    263263
    264264<p class="search-box">
    265     <label class="screen-reader-text" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
     265    <label class="screen-reader-text" for="post-search-input"><?php printf( __( 'Search %s' ), $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 esc_attr_e( 'Search Posts' ); ?>" class="button" />
     267    <input type="submit" value="<?php echo esc_attr( sprintf( __( 'Search %s' ), $post_type_object->label ) ); ?>" class="button" />
    268268</p>
    269269
     
    411411<p><?php
    412412if ( isset($_GET['post_status']) && 'trash' == $_GET['post_status'] )
    413     _e( 'No posts found in the Trash.' );
     413    printf( __( 'No %s found in the Trash.' ), $post_type_object->label );
    414414else
    415     _e( 'No posts found.' );
     415    printf( __( 'No %s found.' ), $post_type_object->label );
    416416?></p>
    417417<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.