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
This commit is contained in:
parent
7128938091
commit
e0c5019035
|
@ -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[] = "<li class='$status'><a href='$link'$class>" . 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[] = "<li class='$status'><a href='$link'$class>" . sprintf(
|
||||
$translated_label,
|
||||
number_format_i18n( $num_comments->$status )
|
||||
) . '</a>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue