From 5360b75e836deb5c4f805bb9861bc18ec5dc1d11 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 26 Jun 2008 17:23:07 +0000 Subject: [PATCH] Use number_format and change language. see #6471 git-svn-id: http://svn.automattic.com/wordpress/trunk@8198 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 3cc9e3ddd4..f228531636 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -91,10 +91,10 @@ if ( current_user_can( 'manage_categories' ) ) { $tags_text = "$tags_text"; } -$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 = "{$total_comments}"; @@ -102,7 +102,7 @@ if( current_user_can( 'moderate_comments' ) ) { $moderated_comments = "{$moderated_comments}"; } -$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);