From c8bd2835a0b3cd3b9771a4cd006f3c0208e353e5 Mon Sep 17 00:00:00 2001 From: scribu Date: Sun, 31 Oct 2010 23:21:56 +0000 Subject: [PATCH] make not_found puctuation translatable. See #14579 git-svn-id: http://svn.automattic.com/wordpress/trunk@16121 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/list-table-posts.php | 6 +++--- wp-includes/post.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/list-table-posts.php b/wp-admin/includes/list-table-posts.php index 9214162cf..d2b9943e8 100644 --- a/wp-admin/includes/list-table-posts.php +++ b/wp-admin/includes/list-table-posts.php @@ -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(); diff --git a/wp-includes/post.php b/wp-includes/post.php index a1ea2e328..7fb95180d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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 );