Changeset 10606 for trunk/wp-admin/upload.php
- Timestamp:
- 02/20/2009 07:35:16 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upload.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r10348 r10606 122 122 123 123 $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)')), 127 127 ); 128 128 $post_mime_types = apply_filters('post_mime_types', $post_mime_types); … … 148 148 if ( isset($_GET['attached']) && (int) $_GET['attached'] ) { 149 149 $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 ); 151 151 $_SERVER['REQUEST_URI'] = remove_query_arg(array('attached'), $_SERVER['REQUEST_URI']); 152 152 } … … 189 189 190 190 $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>'; 192 192 foreach ( $post_mime_types as $mime_type => $label ) { 193 193 $class = ''; … … 199 199 $class = ' class="current"'; 200 200 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>'; 202 202 } 203 203 $class = isset($_GET['detached']) ? ' class="current"' : '';
Note: See TracChangeset
for help on using the changeset viewer.