From fc660a45a32eb1942a6ce80b4f1684f889775f2a Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 20 Feb 2009 19:35:16 +0000 Subject: [PATCH] Use _n(). Props nbachiyski. fixes #9111 git-svn-id: http://svn.automattic.com/wordpress/trunk@10606 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-pages.php | 10 +++++----- wp-admin/edit.php | 10 +++++----- wp-admin/import/blogware.php | 2 +- wp-admin/import/btt.php | 2 +- wp-admin/import/dotclear.php | 4 ++-- wp-admin/import/greymatter.php | 4 ++-- wp-admin/import/jkw.php | 4 ++-- wp-admin/import/mt.php | 4 ++-- wp-admin/import/stp.php | 4 ++-- wp-admin/import/textpattern.php | 4 ++-- wp-admin/import/utw.php | 6 +++--- wp-admin/import/wordpress.php | 2 +- wp-admin/import/wp-cat2tag.php | 4 ++-- wp-admin/includes/media.php | 2 +- wp-admin/includes/plugin-install.php | 8 ++++---- wp-admin/includes/post.php | 16 ++++++++-------- wp-admin/includes/theme-install.php | 6 +++--- wp-admin/link-manager.php | 2 +- wp-admin/upload.php | 12 ++++++------ wp-admin/users.php | 4 ++-- wp-includes/category-template.php | 4 ++-- wp-includes/formatting.php | 6 +++--- wp-includes/pluggable.php | 2 +- 23 files changed, 61 insertions(+), 61 deletions(-) diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 2d052d9f3d..fb7281cbd4 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -112,22 +112,22 @@ if ( isset($_GET['s']) && $_GET['s'] )

" . sprintf( __ngettext( 'All (%s)', 'All (%s)', $total_posts ), number_format_i18n( $total_posts ) ) . ''; +$status_links[] = "

  • " . sprintf( _n( 'All (%s)', 'All (%s)', $total_posts ), number_format_i18n( $total_posts ) ) . ''; foreach ( $post_stati as $status => $label ) { $class = ''; diff --git a/wp-admin/edit.php b/wp-admin/edit.php index b541a73295..5f7caed66e 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -110,7 +110,7 @@ endif; ?>
  • " . sprintf( _n( 'All (%s)', 'All (%s)', $total_posts ), number_format_i18n( $total_posts ) ) . ''; foreach ( $post_stati as $status => $label ) { @@ -155,7 +155,7 @@ foreach ( $post_stati as $status => $label ) { if ( isset($_GET['post_status']) && $status == $_GET['post_status'] ) $class = ' class="current"'; - $status_links[] = "
  • " . sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . ''; + $status_links[] = "
  • " . sprintf( _n( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . ''; } echo implode( " |
  • \n", $status_links ) . ''; unset( $status_links ); diff --git a/wp-admin/import/blogware.php b/wp-admin/import/blogware.php index afec323c3b..ee12e14802 100644 --- a/wp-admin/import/blogware.php +++ b/wp-admin/import/blogware.php @@ -155,7 +155,7 @@ class BW_Import { } if ( $num_comments ) { echo ' '; - printf( __ngettext('%s comment', '%s comments', $num_comments), $num_comments ); + printf( _n('%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 c528c2251c..a9d28319f1 100644 --- a/wp-admin/import/btt.php +++ b/wp-admin/import/btt.php @@ -83,7 +83,7 @@ class BunnyTags_Import { return false; } else { $count = count($metakeys); - echo '

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

    '; + echo '

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

    '; echo '