Make WordPress Core


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

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

File:
1 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} ?>
Note: See TracChangeset for help on using the changeset viewer.