Make WordPress Core

Ticket #8324: ngettext_formatted.diff

File ngettext_formatted.diff, 839 bytes (added by filosofo, 17 years ago)
  • wp-admin/includes/dashboard.php

     
    188188        else
    189189                $text = $num;
    190190        echo '<td class="first b b-posts">' . $text . '</td>';
    191         echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', $num ) . '</td>';
     191        echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', intval($num_posts->publish) ) . '</td>';
    192192        /* TODO: Show status breakdown on hover
    193193        if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds.  Don't show if !current_user_can
    194194                $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';