Ticket #4865: i18n.complete.#4865.patch
File i18n.complete.#4865.patch, 10.9 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-comments.php
68 68 endforeach; 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); 74 74 } -
wp-admin/import/blogware.php
141 141 } 142 142 if ( $num_comments ) { 143 143 echo ' '; 144 printf( __('(%s comments)'), $num_comments);144 printf( __ngettext('%s comment', '% comments', $num_comments), $num_comments ); 145 145 } 146 146 echo '</li>'; 147 147 flush(); -
wp-admin/import/btt.php
68 68 return false; 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 ) { 74 74 if ( $post_meta->meta_value != '' ) { -
wp-admin/import/dotclear.php
526 526 } 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; 532 532 } -
wp-admin/import/greymatter.php
272 272 } 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 } 283 283 echo '... <strong>'.__('Done').'</strong></li>'; -
wp-admin/import/jkw.php
84 84 return false; 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 ) { 90 90 if ( $post_meta->meta_value != '' ) { … … 125 125 return false; 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 ) { 131 131 $keyword = addslashes(trim($post_meta->tag_name)); -
wp-admin/import/livejournal.php
119 119 } 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>'; 125 125 } -
wp-admin/import/mt.php
238 238 } 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; 244 244 foreach ( $pings as $ping ) { … … 255 255 } 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>"; 261 261 //ob_flush();flush(); -
wp-admin/import/stp.php
73 73 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 79 79 echo '<form action="admin.php?import=stp&step=2" method="post">'; … … 91 91 // run that funky magic! 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'); 97 97 echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3 »').'" /></p>'; -
wp-admin/import/textpattern.php
462 462 } 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; 468 468 } -
wp-admin/import/utw.php
84 84 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 90 90 echo '<ul>'; … … 136 136 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 } 142 142 … … 157 157 // run that funky magic! 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">'; 163 163 wp_nonce_field('import-utw'); -
wp-admin/import/wordpress.php
429 429 } } 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 435 435 preg_match_all('|<wp:postmeta>(.*?)</wp:postmeta>|is', $post, $postmeta); -
wp-admin/moderation.php
82 82 echo '<div id="moderated" class="updated fade"><p>'; 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 } 93 93 -
wp-includes/pluggable.php
631 631 $notify_message .= sprintf( __('Approve it: %s'), get_option('siteurl')."/wp-admin/comment.php?action=mac&c=$comment_id" ) . "\r\n"; 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 637 638 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title );