Make WordPress Core

Ticket #8136: avoid-percent-d.diff

File avoid-percent-d.diff, 3.8 KB (added by nbachiyski, 17 years ago)
  • wp-admin/includes/plugin-install.php

     
    338338                                <td class="name"><?php echo $title; ?></td>
    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>
    344344                                                <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>
     
    867867        return $folder . $pluginfiles[0];
    868868}
    869869
    870 ?>
    871  No newline at end of file
     870?>
  • wp-admin/edit.php

     
    104104<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) ) { ?>
    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}
    110110
     
    112112        unset($_GET['skipped']);
    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} ?>
    118118</p></div>
  • wp-admin/edit-pages.php

     
    108108<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) ) { ?>
    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} ?>
    124124</p></div>