From d20eeb048bd72980bd93656cad7be4df4f9978f8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 20 Dec 2007 17:05:06 +0000 Subject: [PATCH] Use __ngettext() for plurals. Props darkdragon. see #4865 git-svn-id: https://develop.svn.wordpress.org/trunk@6430 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-comments.php | 2 +- wp-admin/import/blogware.php | 2 +- wp-admin/import/btt.php | 2 +- wp-admin/import/dotclear.php | 2 +- wp-admin/import/greymatter.php | 4 ++-- wp-admin/import/jkw.php | 4 ++-- wp-admin/import/livejournal.php | 2 +- wp-admin/import/mt.php | 4 ++-- wp-admin/import/stp.php | 4 ++-- wp-admin/import/textpattern.php | 2 +- wp-admin/import/utw.php | 6 +++--- wp-admin/import/wordpress.php | 2 +- wp-admin/moderation.php | 4 ++-- wp-includes/pluggable.php | 3 ++- 14 files changed, 22 insertions(+), 21 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index c761e8c5a1..a46a8c28ff 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -68,7 +68,7 @@ if ( !empty( $_POST['delete_comments'] ) ) : endforeach; echo '

'; if ( !empty( $_POST['spam_button'] ) ) { - printf(__ngettext('%s comment marked as spam', '%s comments marked as spam.', $i), $i); + printf(__ngettext('%s comment marked as spam.', '%s comments marked as spam.', $i), $i); } else { printf(__ngettext('%s comment deleted.', '%s comments deleted.', $i), $i); } diff --git a/wp-admin/import/blogware.php b/wp-admin/import/blogware.php index d85fd92107..3f4155daf8 100644 --- a/wp-admin/import/blogware.php +++ b/wp-admin/import/blogware.php @@ -141,7 +141,7 @@ class BW_Import { } if ( $num_comments ) { echo ' '; - printf(__('(%s comments)'), $num_comments); + printf( __ngettext('%s comment', '%s comments', $num_comments), $num_comments ); } echo ''; flush(); diff --git a/wp-admin/import/btt.php b/wp-admin/import/btt.php index 5972e30b75..9a2dacf6b4 100644 --- a/wp-admin/import/btt.php +++ b/wp-admin/import/btt.php @@ -68,7 +68,7 @@ class BunnyTags_Import { return false; } else { $count = count($metakeys); - echo '

' . sprintf( __('Done! %s posts with tags were read.'), $count ) . '

'; + echo '

' . sprintf( __ngettext('Done! %s post with tags were read.', 'Done! %s posts with tags were read.', $count), $count ) . '

'; echo '