Allow number_format to be internationalized. Props nbachiyski. fixes #3677

git-svn-id: https://develop.svn.wordpress.org/trunk@5308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-04-25 00:49:57 +00:00
parent 2b3f6e3070
commit a40b296021
5 changed files with 28 additions and 8 deletions
+2 -2
View File
@@ -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 ) ? "<a href='edit.php?cat=$category->cat_ID'>$category->category_count</a>" : $category->category_count;
return "<tr id='cat-$category->cat_ID'$class>
<th scope='row' style='text-align: center'>$category->cat_ID</th>