From d3f52c3b45ce02346ac5f5e73f4c4b3853fb1877 Mon Sep 17 00:00:00 2001 From: rob1n Date: Wed, 25 Apr 2007 00:49:57 +0000 Subject: [PATCH] Allow number_format to be internationalized. Props nbachiyski. fixes #3677 git-svn-id: http://svn.automattic.com/wordpress/trunk@5308 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 ++-- wp-admin/index.php | 8 ++++---- wp-includes/functions.php | 8 ++++++++ wp-includes/locale.php | 14 +++++++++++++- wp-settings.php | 2 +- 5 files changed, 28 insertions(+), 8 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 750ff16a9d..cbed44e700 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -831,8 +831,8 @@ function _cat_row( $category, $level, $name_override = false ) { $class = ( ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || " class='alternate'" == $class ) ? '' : " class='alternate'"; - $category->category_count = number_format( $category->category_count ); - $category->link_count = number_format( $category->link_count ); + $category->category_count = number_format_i18n( $category->category_count ); + $category->link_count = number_format_i18n( $category->link_count ); $posts_count = ( $category->category_count > 0 ) ? "$category->category_count" : $category->category_count; return " $category->cat_ID diff --git a/wp-admin/index.php b/wp-admin/index.php index 7e70aece5b..a3d3151451 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -43,7 +43,7 @@ if ( $comments || $numcomments ) :

»

-

»

+

»