Changeset 10606
- Timestamp:
- 02/20/2009 07:35:16 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r10348 r10606 113 113 <div id="message" class="updated fade"><p> 114 114 <?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'] ) ); 116 116 unset($_GET['updated']); 117 117 } 118 118 119 119 if ( 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'] ) ); 121 121 unset($_GET['skipped']); 122 122 } 123 123 124 124 if ( 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'] ) ); 126 126 unset($_GET['locked']); 127 127 } 128 128 129 129 if ( 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'] ) ); 131 131 unset($_GET['deleted']); 132 132 } … … 151 151 $total_posts = array_sum( (array) $num_posts ); 152 152 $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>'; 154 154 foreach ( $post_stati as $status => $label ) { 155 155 $class = ''; -
trunk/wp-admin/edit.php
r10348 r10606 111 111 <div id="message" class="updated fade"><p> 112 112 <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) { 113 printf( _ _ngettext( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );113 printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); 114 114 unset($_GET['updated']); 115 115 } … … 119 119 120 120 if ( isset($_GET['locked']) && (int) $_GET['locked'] ) { 121 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'] ) );121 printf( _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) ); 122 122 unset($_GET['locked']); 123 123 } 124 124 125 125 if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) { 126 printf( _ _ngettext( 'Post deleted.', '%s posts deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );126 printf( _n( 'Post deleted.', '%s posts deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) ); 127 127 unset($_GET['deleted']); 128 128 } … … 142 142 $total_posts = array_sum( (array) $num_posts ); 143 143 $class = empty( $_GET['post_status'] ) ? ' class="current"' : ''; 144 $status_links[] = "<li><a href='edit.php' $class>" . sprintf( _ _ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>';144 $status_links[] = "<li><a href='edit.php' $class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>'; 145 145 146 146 … … 156 156 $class = ' class="current"'; 157 157 158 $status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . sprintf( _ _ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';158 $status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . sprintf( _n( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>'; 159 159 } 160 160 echo implode( " |</li>\n", $status_links ) . '</li>'; -
trunk/wp-admin/import/blogware.php
r10339 r10606 156 156 if ( $num_comments ) { 157 157 echo ' '; 158 printf( _ _ngettext('%s comment', '%s comments', $num_comments), $num_comments );158 printf( _n('%s comment', '%s comments', $num_comments), $num_comments ); 159 159 } 160 160 echo '</li>'; -
trunk/wp-admin/import/btt.php
r9903 r10606 84 84 } else { 85 85 $count = count($metakeys); 86 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>';86 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>'; 87 87 echo '<ul>'; 88 88 foreach ( $metakeys as $post_meta ) { -
trunk/wp-admin/import/dotclear.php
r9933 r10606 313 313 // Store category translation for future use 314 314 add_option('dccat2wpcat',$dccat2wpcat); 315 echo '<p>'.sprintf(_ _ngettext('Done! <strong>%1$s</strong> category imported.', 'Done! <strong>%1$s</strong> categories imported.', $count), $count).'<br /><br /></p>';315 echo '<p>'.sprintf(_n('Done! <strong>%1$s</strong> category imported.', 'Done! <strong>%1$s</strong> categories imported.', $count), $count).'<br /><br /></p>'; 316 316 return true; 317 317 } … … 614 614 add_option('dclinks2wplinks',$dclinks2wplinks); 615 615 echo '<p>'; 616 printf(_ _ngettext('Done! <strong>%s</strong> link or link category imported.', 'Done! <strong>%s</strong> links or link categories imported.', $count), $count);616 printf(_n('Done! <strong>%s</strong> link or link category imported.', 'Done! <strong>%s</strong> links or link categories imported.', $count), $count); 617 617 echo '<br /><br /></p>'; 618 618 return true; -
trunk/wp-admin/import/greymatter.php
r9933 r10606 284 284 if ($numAddedComments > 0) { 285 285 echo ': '; 286 printf( _ _ngettext('imported %s comment', 'imported %s comments', $numAddedComments) , $numAddedComments);286 printf( _n('imported %s comment', 'imported %s comments', $numAddedComments) , $numAddedComments); 287 287 } 288 288 $preExisting = $numComments - numAddedComments; 289 289 if ($preExisting > 0) { 290 290 echo ' '; 291 printf( _ _ngettext( 'ignored %s pre-existing comment', 'ignored %s pre-existing comments', $preExisting ) , $preExisting);291 printf( _n( 'ignored %s pre-existing comment', 'ignored %s pre-existing comments', $preExisting ) , $preExisting); 292 292 } 293 293 } -
trunk/wp-admin/import/jkw.php
r9903 r10606 99 99 } else { 100 100 $count = count($metakeys); 101 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>';101 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>'; 102 102 echo '<ul>'; 103 103 foreach ( $metakeys as $post_meta ) { … … 140 140 } else { 141 141 $count = count($metakeys); 142 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';142 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>'; 143 143 echo '<ul>'; 144 144 foreach ( $metakeys as $post_meta ) { -
trunk/wp-admin/import/mt.php
r10430 r10606 289 289 290 290 if ( $num_comments ) 291 printf(' '._ _ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments);291 printf(' '._n('(%s comment)', '(%s comments)', $num_comments), $num_comments); 292 292 293 293 $num_pings = 0; … … 306 306 307 307 if ( $num_pings ) 308 printf(' '._ _ngettext('(%s ping)', '(%s pings)', $num_pings), $num_pings);308 printf(' '._n('(%s ping)', '(%s pings)', $num_pings), $num_pings); 309 309 310 310 echo "</li>"; -
trunk/wp-admin/import/stp.php
r9903 r10606 89 89 add_option('stpimp_posts', $posts); 90 90 $count = count($posts); 91 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>';91 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>'; 92 92 } 93 93 … … 107 107 $tags_added = $this->tag2post(); 108 108 109 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> tag was added!', 'Done! <strong>%s</strong> tags were added!', $tags_added), $tags_added ) . '<br /></p>';109 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag was added!', 'Done! <strong>%s</strong> tags were added!', $tags_added), $tags_added ) . '<br /></p>'; 110 110 echo '<form action="admin.php?import=stp&step=3" method="post">'; 111 111 wp_nonce_field('import-stp'); -
trunk/wp-admin/import/textpattern.php
r9903 r10606 202 202 // Store category translation for future use 203 203 add_option('txpcat2wpcat',$txpcat2wpcat); 204 echo '<p>'.sprintf(_ _ngettext('Done! <strong>%1$s</strong> category imported.', 'Done! <strong>%1$s</strong> categories imported.', $count), $count).'<br /><br /></p>';204 echo '<p>'.sprintf(_n('Done! <strong>%1$s</strong> category imported.', 'Done! <strong>%1$s</strong> categories imported.', $count), $count).'<br /><br /></p>'; 205 205 return true; 206 206 } … … 487 487 add_option('txplinks2wplinks',$txplinks2wplinks); 488 488 echo '<p>'; 489 printf(_ _ngettext('Done! <strong>%s</strong> link imported', 'Done! <strong>%s</strong> links imported', $count), $count);489 printf(_n('Done! <strong>%s</strong> link imported', 'Done! <strong>%s</strong> links imported', $count), $count); 490 490 echo '<br /><br /></p>'; 491 491 return true; -
trunk/wp-admin/import/utw.php
r9903 r10606 99 99 $count = count($tags); 100 100 101 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>';101 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>'; 102 102 echo '<p>' . __('The following tags were found:') . '</p>'; 103 103 … … 151 151 $count = count($posts); 152 152 153 echo '<p>' . sprintf( _ _ngettext('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>';153 echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>'; 154 154 155 155 } … … 172 172 $tags_added = $this->tag2post(); 173 173 174 echo '<p>' . sprintf( _ _ngettext( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>';174 echo '<p>' . sprintf( _n( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>'; 175 175 176 176 echo '<form action="admin.php?import=utw&step=4" method="post">'; -
trunk/wp-admin/import/wordpress.php
r10339 r10606 529 529 530 530 if ( $num_comments ) 531 printf(' '._ _ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments);531 printf(' '._n('(%s comment)', '(%s comments)', $num_comments), $num_comments); 532 532 533 533 // Now for post meta -
trunk/wp-admin/import/wp-cat2tag.php
r9903 r10606 66 66 if ( $cat_num > 0 ) { 67 67 screen_icon(); 68 echo '<h2>' . sprintf( _ _ngettext( 'Convert Category to Tag.', 'Convert Categories (%d) to Tags.', $cat_num ), $cat_num ) . '</h2>';68 echo '<h2>' . sprintf( _n( 'Convert Category to Tag.', 'Convert Categories (%d) to Tags.', $cat_num ), $cat_num ) . '</h2>'; 69 69 echo '<div class="narrow">'; 70 70 echo '<p>' . __('Hey there. Here you can selectively convert existing categories to tags. To get started, check the categories you wish to be converted, then click the Convert button.') . '</p>'; … … 142 142 if ( $tags_num > 0 ) { 143 143 screen_icon(); 144 echo '<h2>' . sprintf( _ _ngettext( 'Convert Tag to Category.', 'Convert Tags (%d) to Categories.', $tags_num ), $tags_num ) . '</h2>';144 echo '<h2>' . sprintf( _n( 'Convert Tag to Category.', 'Convert Tags (%d) to Categories.', $tags_num ), $tags_num ) . '</h2>'; 145 145 echo '<div class="narrow">'; 146 146 echo '<p>' . __('Here you can selectively converts existing tags to categories. To get started, check the tags you wish to be converted, then click the Convert button.') . '</p>'; -
trunk/wp-admin/includes/media.php
r10390 r10606 1691 1691 $class = ' class="current"'; 1692 1692 1693 $type_links[] = "<li><a href='" . clean_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf(_ _ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';1693 $type_links[] = "<li><a href='" . clean_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf(_n($label[2][0], $label[2][1], $num_posts[$mime_type]), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>'; 1694 1694 } 1695 1695 echo implode(' | </li>', $type_links) . '</li>'; -
trunk/wp-admin/includes/plugin-install.php
r10468 r10606 339 339 <td class="vers"><?php echo $version; ?></td> 340 340 <td class="vers"> 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'])) ?>">341 <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>"> 342 342 <div class="star star-rating" style="width: <?php echo attribute_escape($plugin['rating']) ?>px"></div> 343 343 <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> … … 486 486 <li><strong><?php _e('Compatible up to:') ?></strong> <?php echo $api->tested ?></li> 487 487 <?php endif; if ( ! empty($api->downloaded) ) : ?> 488 <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_ _ngettext('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li>488 <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li> 489 489 <?php endif; if ( ! empty($api->slug) ) : ?> 490 490 <li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page »') ?></a></li> … … 494 494 </ul> 495 495 <h2><?php _e('Average Rating') ?></h2> 496 <div class="star-holder" title="<?php printf(_ _ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">496 <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>"> 497 497 <div class="star star-rating" style="width: <?php echo attribute_escape($api->rating) ?>px"></div> 498 498 <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> … … 502 502 <div class="star star1"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('1 star') ?>" /></div> 503 503 </div> 504 <small><?php printf(_ _ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>504 <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small> 505 505 </div> 506 506 <div id="section-holder" class="wrap"> -
trunk/wp-admin/includes/post.php
r10528 r10606 775 775 $q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0; 776 776 $post_stati = array( // array( adj, noun ) 777 'publish' => array(__('Published'), __('Published posts'), _ _ngettext_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')),778 'future' => array(__('Scheduled'), __('Scheduled posts'), _ _ngettext_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')),779 'pending' => array(__('Pending Review'), __('Pending posts'), _ _ngettext_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')),780 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), _ _ngettext_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')),781 'private' => array(__('Private'), __('Private posts'), _ _ngettext_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')),777 'publish' => array(__('Published'), __('Published posts'), _n_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')), 778 'future' => array(__('Scheduled'), __('Scheduled posts'), _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')), 779 'pending' => array(__('Pending Review'), __('Pending posts'), _n_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')), 780 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), _n_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')), 781 'private' => array(__('Private'), __('Private posts'), _n_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')), 782 782 ); 783 783 … … 841 841 $q['posts_per_page'] = 15; 842 842 $post_mime_types = array( // array( adj, noun ) 843 'image' => array(__('Images'), __('Manage Images'), _ _ngettext_noop('Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>')),844 'audio' => array(__('Audio'), __('Manage Audio'), _ _ngettext_noop('Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>')),845 'video' => array(__('Video'), __('Manage Video'), _ _ngettext_noop('Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>')),843 'image' => array(__('Images'), __('Manage Images'), _n_noop('Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>')), 844 'audio' => array(__('Audio'), __('Manage Audio'), _n_noop('Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>')), 845 'video' => array(__('Video'), __('Manage Video'), _n_noop('Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>')), 846 846 ); 847 847 $post_mime_types = apply_filters('post_mime_types', $post_mime_types); -
trunk/wp-admin/includes/theme-install.php
r10592 r10606 473 473 <li><strong><?php _e('Compatible up to:') ?></strong> <?php echo $api->tested ?></li> 474 474 <?php endif; if ( ! empty($api->downloaded) ) : ?> 475 <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_ _ngettext('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li>475 <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li> 476 476 <?php endif; if ( ! empty($api->slug) ) : ?> 477 477 <li><a target="_blank" href="http://wordpress.org/extend/themes/<?php echo $api->slug ?>/"><?php _e('WordPress.org Theme Page »') ?></a></li> … … 481 481 </ul> 482 482 <h2><?php _e('Average Rating') ?></h2> 483 <div class="star-holder" title="<?php printf(_ _ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">483 <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>"> 484 484 <div class="star star-rating" style="width: <?php echo attribute_escape($api->rating) ?>px"></div> 485 485 <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> … … 489 489 <div class="star star1"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('1 star') ?>" /></div> 490 490 </div> 491 <small><?php printf(_ _ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>491 <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small> 492 492 </div> 493 493 <div id="section-holder" class="wrap"> -
trunk/wp-admin/link-manager.php
r10481 r10606 81 81 echo '<div id="message" class="updated fade"><p>'; 82 82 $deleted = (int) $_GET['deleted']; 83 printf(_ _ngettext('%s link deleted.', '%s links deleted', $deleted), $deleted);83 printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted); 84 84 echo '</p></div>'; 85 85 $_SERVER['REQUEST_URI'] = remove_query_arg(array('deleted'), $_SERVER['REQUEST_URI']); -
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"' : ''; -
trunk/wp-admin/users.php
r10348 r10606 203 203 case 'del_many': 204 204 $delete_count = isset($_GET['delete_count']) ? (int) $_GET['delete_count'] : 0; 205 $messages[] = '<div id="message" class="updated fade"><p>' . sprintf(_ _ngettext('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';205 $messages[] = '<div id="message" class="updated fade"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>'; 206 206 break; 207 207 case 'add': … … 265 265 $current_role = false; 266 266 $class = empty($role) ? ' class="current"' : ''; 267 $role_links[] = "<li><a href='users.php'$class>" . sprintf( _ _ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users ), number_format_i18n( $total_users ) ) . '</a>';267 $role_links[] = "<li><a href='users.php'$class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users ), number_format_i18n( $total_users ) ) . '</a>'; 268 268 foreach ( $wp_roles->get_names() as $this_role => $name ) { 269 269 if ( !isset($avail_roles[$this_role]) ) -
trunk/wp-includes/category-template.php
r10554 r10606 599 599 */ 600 600 function default_topic_count_text( $count ) { 601 return sprintf( _ _ngettext('%s topic', '%s topics', $count), number_format_i18n( $count ) );601 return sprintf( _n('%s topic', '%s topics', $count), number_format_i18n( $count ) ); 602 602 } 603 603 … … 639 639 if ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) { 640 640 $body = 'return sprintf ( 641 _ _ngettext('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count),641 _n('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count), 642 642 number_format_i18n( $count ));'; 643 643 $args['topic_count_text_callback'] = create_function('$count', $body); -
trunk/wp-includes/formatting.php
r10562 r10606 1474 1474 $mins = 1; 1475 1475 } 1476 $since = sprintf(_ _ngettext('%s min', '%s mins', $mins), $mins);1476 $since = sprintf(_n('%s min', '%s mins', $mins), $mins); 1477 1477 } else if (($diff <= 86400) && ($diff > 3600)) { 1478 1478 $hours = round($diff / 3600); … … 1480 1480 $hours = 1; 1481 1481 } 1482 $since = sprintf(_ _ngettext('%s hour', '%s hours', $hours), $hours);1482 $since = sprintf(_n('%s hour', '%s hours', $hours), $hours); 1483 1483 } elseif ($diff >= 86400) { 1484 1484 $days = round($diff / 86400); … … 1486 1486 $days = 1; 1487 1487 } 1488 $since = sprintf(_ _ngettext('%s day', '%s days', $days), $days);1488 $since = sprintf(_n('%s day', '%s days', $days), $days); 1489 1489 } 1490 1490 return $since; -
trunk/wp-includes/pluggable.php
r10577 r10606 1039 1039 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=cdc&dt=spam&c=$comment_id") ) . "\r\n"; 1040 1040 1041 $notify_message .= sprintf( _ _ngettext('Currently %s comment is waiting for approval. Please visit the moderation panel:',1041 $notify_message .= sprintf( _n('Currently %s comment is waiting for approval. Please visit the moderation panel:', 1042 1042 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n"; 1043 1043 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n";
Note: See TracChangeset
for help on using the changeset viewer.