make not_found puctuation translatable. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@16121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-31 23:21:56 +00:00
parent 17654e64a5
commit c8bd2835a0
2 changed files with 5 additions and 5 deletions

View File

@ -122,9 +122,9 @@ class WP_Posts_Table extends WP_List_Table {
global $post_type_object;
if ( isset( $_REQUEST['post_status'] ) && 'trash' == $_REQUEST['post_status'] )
echo $post_type_object->labels->not_found_in_trash . '.';
echo $post_type_object->labels->not_found_in_trash;
else
echo $post_type_object->labels->not_found . '.';
echo $post_type_object->labels->not_found;
}
function get_views() {
@ -313,7 +313,7 @@ class WP_Posts_Table extends WP_List_Table {
function _display_rows( $posts ) {
global $post, $mode;
add_filter( 'the_title','esc_html' );
add_filter( 'the_title', 'esc_html' );
// Create array of post IDs.
$post_ids = array();

View File

@ -1140,8 +1140,8 @@ function get_post_type_labels( $post_type_object ) {
'new_item' => array( __('New Post'), __('New Page') ),
'view_item' => array( __('View Post'), __('View Page') ),
'search_items' => array( __('Search Posts'), __('Search Pages') ),
'not_found' => array( __('No posts found'), __('No pages found') ),
'not_found_in_trash' => array( __('No posts found in Trash'), __('No pages found in Trash') ),
'not_found' => array( __('No posts found.'), __('No pages found.') ),
'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
'parent_item_colon' => array( null, __('Parent Page:') )
);
return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );