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/upload.php

    r10348 r10606  
    122122
    123123    $post_mime_types = array(
    124                 'image' => array(__('Images'), __('Manage Images'), __ngettext_noop('Image (%s)', 'Images (%s)')),
    125                 'audio' => array(__('Audio'), __('Manage Audio'), __ngettext_noop('Audio (%s)', 'Audio (%s)')),
    126                 'video' => array(__('Video'), __('Manage Video'), __ngettext_noop('Video (%s)', 'Video (%s)')),
     124                'image' => array(__('Images'), __('Manage Images'), _n_noop('Image (%s)', 'Images (%s)')),
     125                'audio' => array(__('Audio'), __('Manage Audio'), _n_noop('Audio (%s)', 'Audio (%s)')),
     126                'video' => array(__('Video'), __('Manage Video'), _n_noop('Video (%s)', 'Video (%s)')),
    127127            );
    128128    $post_mime_types = apply_filters('post_mime_types', $post_mime_types);
     
    148148if ( isset($_GET['attached']) && (int) $_GET['attached'] ) {
    149149    $attached = (int) $_GET['attached'];
    150     $message = sprintf( __ngettext('Reattached %d attachment', 'Reattached %d attachments', $attached), $attached );
     150    $message = sprintf( _n('Reattached %d attachment', 'Reattached %d attachments', $attached), $attached );
    151151    $_SERVER['REQUEST_URI'] = remove_query_arg(array('attached'), $_SERVER['REQUEST_URI']);
    152152}
     
    189189
    190190$class = empty($_GET['post_mime_type']) && ! isset($_GET['detached']) ? ' class="current"' : '';
    191 $type_links[] = "<li><a href='upload.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $_total_posts ), number_format_i18n( $_total_posts ) ) . '</a>';
     191$type_links[] = "<li><a href='upload.php'$class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $_total_posts ), number_format_i18n( $_total_posts ) ) . '</a>';
    192192foreach ( $post_mime_types as $mime_type => $label ) {
    193193    $class = '';
     
    199199        $class = ' class="current"';
    200200
    201     $type_links[] = "<li><a href='upload.php?post_mime_type=$mime_type'$class>" . sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</a>';
     201    $type_links[] = "<li><a href='upload.php?post_mime_type=$mime_type'$class>" . sprintf( _n( $label[2][0], $label[2][1], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</a>';
    202202}
    203203$class = isset($_GET['detached']) ? ' class="current"' : '';
Note: See TracChangeset for help on using the changeset viewer.