Use number_format and change language. see #6471

git-svn-id: http://svn.automattic.com/wordpress/trunk@8198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-26 17:23:07 +00:00
parent 63b5bd26fe
commit 5360b75e83
1 changed files with 5 additions and 5 deletions

View File

@ -91,10 +91,10 @@ if ( current_user_can( 'manage_categories' ) ) {
$tags_text = "<a href='edit-tags.php'>$tags_text</a>";
}
$total_comments = sprintf( __( '%1$s total' ), $num_comm['total_comments'] );
$approved_comments = sprintf( __( '%1$s approved' ), $num_comm['approved'] );
$spam_comments = sprintf( __( '%1$s spam' ), $num_comm['spam'] );
$moderated_comments = sprintf( __( '%1$s awaiting moderation' ), $num_comm['awaiting_moderation'] );
$total_comments = sprintf( __( '%1$s total' ), number_format_i18n($num_comm['total_comments']) );
$approved_comments = sprintf( __( '%1$s approved' ), number_format_i18n($num_comm['approved']) );
$spam_comments = sprintf( __( '%1$s spam' ), number_format_i18n($num_comm['spam']) );
$moderated_comments = sprintf( __( '%1$s awaiting moderation' ), number_format_i18n($num_comm['awaiting_moderation']) );
if( current_user_can( 'moderate_comments' ) ) {
$total_comments = "<a href='edit-comments.php'>{$total_comments}</a>";
@ -102,7 +102,7 @@ if( current_user_can( 'moderate_comments' ) ) {
$moderated_comments = "<a href='edit-comments.php?comment_status=moderated'>{$moderated_comments}</a>";
}
$comm_text = sprintf( __( 'Current comment break down: %1$s, %2$s, %3$s and %4$s.' ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
$comm_text = sprintf( __( 'You have %1$s comments, %2$s, %3$s and %4$s.' ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
$post_type_text = implode(', ', $post_type_texts);