Make WordPress Core


Ignore:
Timestamp:
02/20/2009 07:35:16 PM (13 years ago)
Author:
ryan
Message:

Use _n(). Props nbachiyski. fixes #9111

File:
1 edited

Legend:

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

    r10348 r10606  
    113113<div id="message" class="updated fade"><p>
    114114<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
    115     printf( __ngettext( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
     115    printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
    116116    unset($_GET['updated']);
    117117}
    118118
    119119if ( isset($_GET['skipped']) && (int) $_GET['skipped'] ) {
    120     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'] ) );
     120    printf( _n( '%s page not updated, invalid parent page specified.', '%s pages not updated, invalid parent page specified.', $_GET['skipped'] ), number_format_i18n( $_GET['skipped'] ) );
    121121    unset($_GET['skipped']);
    122122}
    123123
    124124if ( isset($_GET['locked']) && (int) $_GET['locked'] ) {
    125     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'] ) );
     125    printf( _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) );
    126126    unset($_GET['locked']);
    127127}
    128128
    129129if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) {
    130     printf( __ngettext( 'Page deleted.', '%s pages deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );
     130    printf( _n( 'Page deleted.', '%s pages deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );
    131131    unset($_GET['deleted']);
    132132}
     
    151151$total_posts = array_sum( (array) $num_posts );
    152152$class = empty($_GET['post_status']) ? ' class="current"' : '';
    153 $status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>';
     153$status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>';
    154154foreach ( $post_stati as $status => $label ) {
    155155    $class = '';
Note: See TracChangeset for help on using the changeset viewer.