Make WordPress Core

Changeset 13916


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.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r13710 r13916  
    108108
    109109if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports($post_type, 'thumbnail') )
    110     add_meta_box('postimagediv', __('Post Thumbnail'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');
     110    add_meta_box('postimagediv', sprintf( __('%s Thumbnail'), $post_type_object->singular_label ), 'post_thumbnail_meta_box', $post_type, 'side', 'low');
    111111
    112112if ( post_type_supports($post_type, 'excerpt') )
  • 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.