From e0c50190357b185b97103b110337cb879cef6018 Mon Sep 17 00:00:00 2001 From: nbachiyski Date: Mon, 21 Jun 2010 12:21:09 +0000 Subject: [PATCH] Check for context item, when using noop-ed plural translations. Props SergeyBiryukov, fixes #13996 for 3.0 branch git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@15295 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-comments.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 7f11bef482..fe4f3eadf5 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -239,8 +239,12 @@ foreach ( $stati as $status => $label ) { if ( !empty( $_GET['s'] ) ) $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link ); */ - $status_links[] = "
  • " . sprintf( - _n( $label[0], $label[1], $num_comments->$status ), + if ( isset( $label[2] ) ) + $translated_label = _nx( $label[0], $label[1], $num_comments->$status, $label[2] ); + else + $translated_label = _n( $label[0], $label[1], $num_comments->$status ); + $status_links[] = "
  • " . sprintf( + $translated_label, number_format_i18n( $num_comments->$status ) ) . ''; }