Make WordPress Core

Changeset 15295


Ignore:
Timestamp:
06/21/2010 12:21:09 PM (15 years ago)
Author:
nbachiyski
Message:

Check for context item, when using noop-ed plural translations. Props SergeyBiryukov, fixes #13996 for 3.0 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/edit-comments.php

    r15132 r15295  
    240240        $link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link );
    241241    */
    242     $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
    243         _n( $label[0], $label[1], $num_comments->$status ),
     242    if ( isset( $label[2] ) )
     243        $translated_label = _nx( $label[0], $label[1], $num_comments->$status, $label[2] );
     244    else
     245        $translated_label = _n( $label[0], $label[1], $num_comments->$status );
     246    $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
     247        $translated_label,
    244248        number_format_i18n( $num_comments->$status )
    245249    ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.