Ticket #8324: ngettext_formatted.diff
| File ngettext_formatted.diff, 839 bytes (added by , 17 years ago) |
|---|
-
wp-admin/includes/dashboard.php
188 188 else 189 189 $text = $num; 190 190 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>'; 192 192 /* TODO: Show status breakdown on hover 193 193 if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can 194 194 $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';