Make WordPress Core

Changeset 9591


Ignore:
Timestamp:
11/10/2008 05:47:41 PM (18 years ago)
Author:
ryan
Message:

Use %s, not %d, for number format output. Props nbachiyski. fixes #8136

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-pages.php

    r9589 r9591  
    109109<div id="message" class="updated fade"><p>
    110110<?php if ( (int) $_GET['updated'] ) {
    111         printf( __ngettext( '%d page updated.', '%d pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
     111        printf( __ngettext( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
    112112        unset($_GET['updated']);
    113113}
    114114
    115115if ( (int) $_GET['skipped'] ) {
    116         printf( __ngettext( ' %d page not updated, invalid parent page specified.', ' %d pages not updated, invalid parent page specified.', $_GET['skipped'] ), number_format_i18n( $_GET['skipped'] ) );
     116        printf( __ngettext( '%s page not updated, invalid parent page specified.', '%s pages not updated, invalid parent page specified.', $_GET['skipped'] ), number_format_i18n( $_GET['skipped'] ) );
    117117        unset($_GET['skipped']);
    118118}
    119119
    120120if ( (int) $_GET['locked'] ) {
    121         printf( __ngettext( ' %d page not updated, somebody is editing it.', ' %d pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) );
     121        printf( __ngettext( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) );
    122122        unset($_GET['locked']);
    123123} ?>
  • trunk/wp-admin/edit.php

    r9589 r9591  
    105105<div id="message" class="updated fade"><p>
    106106<?php if ( (int) $_GET['updated'] ) {
    107         printf( __ngettext( '%d post updated.', '%d posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
     107        printf( __ngettext( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
    108108        unset($_GET['updated']);
    109109}
    … …  
    113113
    114114if ( (int) $_GET['locked'] ) {
    115         printf( __ngettext( ' %d post not updated, somebody is editing it.', ' %d posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) );
     115        printf( __ngettext( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) );
    116116        unset($_GET['locked']);
    117117} ?>
  • trunk/wp-admin/includes/plugin-install.php

    r9527 r9591  
    339339                                <td class="vers"><?php echo $version; ?></td>
    340340                                <td class="vers">
    341                                         <div class="star-holder" title="<?php printf(__ngettext('(based on %d rating)', '(based on %d ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>">
     341                                        <div class="star-holder" title="<?php printf(__ngettext('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>">
    342342                                                <div class="star star-rating" style="width: <?php echo attribute_escape($plugin['rating']) ?>px"></div>
    343343                                                <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
Note: See TracChangeset for help on using the changeset viewer.