Changeset 6430
- Timestamp:
- 12/20/2007 05:05:06 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r6277 r6430 69 69 echo '<div style="background-color: rgb(207, 235, 247);" id="message" class="updated fade"><p>'; 70 70 if ( !empty( $_POST['spam_button'] ) ) { 71 printf(__ngettext('%s comment marked as spam ', '%s comments marked as spam.', $i), $i);71 printf(__ngettext('%s comment marked as spam.', '%s comments marked as spam.', $i), $i); 72 72 } else { 73 73 printf(__ngettext('%s comment deleted.', '%s comments deleted.', $i), $i); -
trunk/wp-admin/import/blogware.php
r6125 r6430 142 142 if ( $num_comments ) { 143 143 echo ' '; 144 printf( __('(%s comments)'), $num_comments);144 printf( __ngettext('%s comment', '%s comments', $num_comments), $num_comments ); 145 145 } 146 146 echo '</li>'; -
trunk/wp-admin/import/btt.php
r6423 r6430 69 69 } else { 70 70 $count = count($metakeys); 71 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> posts with tags were read.'), $count ) . '<br /></p>';71 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>'; 72 72 echo '<ul>'; 73 73 foreach ( $metakeys as $post_meta ) { -
trunk/wp-admin/import/dotclear.php
r6125 r6430 527 527 add_option('dclinks2wplinks',$dclinks2wplinks); 528 528 echo '<p>'; 529 printf(__ ('Done! <strong>%s</strong> links or link categories imported'), $count);529 printf(__ngettext('Done! <strong>%s</strong> link or link category imported.', 'Done! <strong>%s</strong> links or link categories imported.', $count), $count); 530 530 echo '<br /><br /></p>'; 531 531 return true; -
trunk/wp-admin/import/greymatter.php
r6125 r6430 273 273 if ($numAddedComments > 0) { 274 274 echo ': '; 275 printf(__('imported %d comment(s)'), $numAddedComments);275 printf(__('imported %s'), sprintf( __ngettext('%s comment', '%s comments', $numAddedComments) , $numAddedComments) ); 276 276 } 277 277 $preExisting = $numComments - numAddedComments; 278 278 if ($preExisting > 0) { 279 279 echo ' '; 280 printf(__('ignored % d pre-existing comments'), $preExisting);280 printf(__('ignored %s'), sprintf( __ngettext( '%s pre-existing comment', '%s pre-existing comments', $preExisting ) , $preExisting) ); 281 281 } 282 282 } -
trunk/wp-admin/import/jkw.php
r6423 r6430 85 85 } else { 86 86 $count = count($metakeys); 87 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> posts with tags were read.'), $count ) . '<br /></p>';87 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>'; 88 88 echo '<ul>'; 89 89 foreach ( $metakeys as $post_meta ) { … … 126 126 } else { 127 127 $count = count($metakeys); 128 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tags were read.'), $count ) . '<br /></p>';128 echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>'; 129 129 echo '<ul>'; 130 130 foreach ( $metakeys as $post_meta ) { -
trunk/wp-admin/import/livejournal.php
r6125 r6430 120 120 if ( $num_comments ) { 121 121 echo ' '; 122 printf(__ ('(%s comments)'), $num_comments);122 printf(__ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments); 123 123 } 124 124 echo '</li>'; -
trunk/wp-admin/import/mt.php
r6171 r6430 239 239 240 240 if ( $num_comments ) 241 printf(' '.__ ('(%s comments)'), $num_comments);241 printf(' '.__ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments); 242 242 243 243 $num_pings = 0; … … 256 256 257 257 if ( $num_pings ) 258 printf(' '.__ ('(%s pings)'), $num_pings);258 printf(' '.__ngettext('(%s ping)', '(%s pings)', $num_pings), $num_pings); 259 259 260 260 echo "</li>"; -
trunk/wp-admin/import/stp.php
r6423 r6430 74 74 add_option('stpimp_posts', $posts); 75 75 $count = count($posts); 76 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>';76 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>'; 77 77 } 78 78 … … 92 92 $tags_added = $this->tag2post(); 93 93 94 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tags where added!'), $tags_added ) . '<br /></p>';94 echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tags where added!', 'Done! <strong>%s</strong> tags where added!', $tags_added), $tags_added ) . '<br /></p>'; 95 95 echo '<form action="admin.php?import=stp&step=3" method="post">'; 96 96 wp_nonce_field('import-stp'); -
trunk/wp-admin/import/textpattern.php
r6125 r6430 463 463 add_option('txplinks2wplinks',$txplinks2wplinks); 464 464 echo '<p>'; 465 printf(__ ('Done! <strong>%s</strong> Links imported'), $count);465 printf(__ngettext('Done! <strong>%s</strong> link imported', 'Done! <strong>%s</strong> links imported', $count), $count); 466 466 echo '<br /><br /></p>'; 467 467 return true; -
trunk/wp-admin/import/utw.php
r6423 r6430 85 85 $count = count($tags); 86 86 87 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tags were read.'), $count ) . '<br /></p>';87 echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tag were read.', 'Done! <strong>%s</strong> tags were read.', $count), $count ) . '<br /></p>'; 88 88 echo '<p>' . __('The following tags were found:') . '</p>'; 89 89 … … 137 137 $count = count($posts); 138 138 139 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>';139 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>'; 140 140 141 141 } … … 158 158 $tags_added = $this->tag2post(); 159 159 160 echo '<p>' . sprintf( __ ('Done! <strong>%s</strong> tags were added!'), $tags_added ) . '<br /></p>';160 echo '<p>' . sprintf( __ngettext( 'Done! <strong>%s</strong> tag were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added ), $tags_added ) . '<br /></p>'; 161 161 162 162 echo '<form action="admin.php?import=utw&step=4" method="post">'; -
trunk/wp-admin/import/wordpress.php
r6428 r6430 430 430 431 431 if ( $num_comments ) 432 printf(' '.__ ('(%s comments)'), $num_comments);432 printf(' '.__ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments); 433 433 434 434 // Now for post meta -
trunk/wp-admin/moderation.php
r6298 r6430 83 83 84 84 if ( $approved > 0 ) { 85 printf( __ngettext( '%s comment approved .', '%s comments approved.', $approved ), $approved );85 printf( __ngettext( '%s comment approved', '%s comments approved', $approved ), $approved ); 86 86 echo '<br />'; 87 87 } 88 88 89 89 if ( $deleted > 0 ) { 90 printf( __ngettext( '%s comment deleted', '%s comments deleted .', $deleted ), $deleted );90 printf( __ngettext( '%s comment deleted', '%s comments deleted', $deleted ), $deleted ); 91 91 echo '<br />'; 92 92 } -
trunk/wp-includes/pluggable.php
r6400 r6430 632 632 $notify_message .= sprintf( __('Delete it: %s'), get_option('siteurl')."/wp-admin/comment.php?action=cdc&c=$comment_id" ) . "\r\n"; 633 633 $notify_message .= sprintf( __('Spam it: %s'), get_option('siteurl')."/wp-admin/comment.php?action=cdc&dt=spam&c=$comment_id" ) . "\r\n"; 634 $notify_message .= sprintf( __('Currently %s comments are waiting for approval. Please visit the moderation panel:'), $comments_waiting ) . "\r\n"; 634 $strCommentsPending = sprintf( __ngettext('%s comment', '%s comments', $comments_waiting), $comments_waiting ); 635 $notify_message .= sprintf( __('Currently %s are waiting for approval. Please visit the moderation panel:'), $strCommentsPending ) . "\r\n"; 635 636 $notify_message .= get_option('siteurl') . "/wp-admin/moderation.php\r\n"; 636 637
Note: See TracChangeset
for help on using the changeset viewer.