WordPress.org

Make WordPress Core

Changeset 8198


Ignore:
Timestamp:
06/26/2008 05:23:07 PM (10 years ago)
Author:
ryan
Message:

Use number_format and change language. see #6471

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r8141 r8198  
    9292}
    9393
    94 $total_comments = sprintf( __( '%1$s total' ), $num_comm['total_comments'] );
    95 $approved_comments = sprintf( __( '%1$s approved' ), $num_comm['approved'] );
    96 $spam_comments = sprintf( __( '%1$s spam' ), $num_comm['spam'] );
    97 $moderated_comments = sprintf( __( '%1$s awaiting moderation' ), $num_comm['awaiting_moderation'] );
     94$total_comments = sprintf( __( '%1$s total' ), number_format_i18n($num_comm['total_comments']) );
     95$approved_comments = sprintf( __( '%1$s approved' ), number_format_i18n($num_comm['approved']) );
     96$spam_comments = sprintf( __( '%1$s spam' ), number_format_i18n($num_comm['spam']) );
     97$moderated_comments = sprintf( __( '%1$s awaiting moderation' ), number_format_i18n($num_comm['awaiting_moderation']) );
    9898
    9999if( current_user_can( 'moderate_comments' ) ) {
     
    103103}
    104104
    105 $comm_text = sprintf( __( 'Current comment break down: %1$s, %2$s, %3$s and %4$s.' ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
     105$comm_text = sprintf( __( 'You have %1$s comments, %2$s, %3$s and %4$s.' ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
    106106
    107107$post_type_text = implode(', ', $post_type_texts);
Note: See TracChangeset for help on using the changeset viewer.