WordPress.org

Make WordPress Core

Ticket #26553: 26553.diff

File 26553.diff, 1.2 KB (added by jorbin, 6 years ago)

Add Translator Comments

  • src/wp-includes/comment-template.php

     
    12771277        $span = '<span class="screen-reader-text">';
    12781278        $title = get_the_title();
    12791279        $span_close = '</span>';
    1280        
     1280
    12811281        $number = get_comments_number( $id );
    1282        
     1282
     1283
     1284        /* translators: 1: Opening span with a class, 2: title, 3: closing span */
    12831285        if ( false === $zero ) $zero = sprintf( __( 'No Comments%1$s on %2$s%3$s' ), $span, $title, $span_close );
     1286        /* translators: 1: Opening span with a class, 2: title, 3: closing span */
    12841287        if ( false === $one ) $one = sprintf( __( '1 Comment%1$s on %2$s%3$s' ), $span, $title, $span_close );
     1288        /* translators: 1: Opening span with a class, 2: title, 3: closing span, 4: number of comments */
    12851289        if ( false === $more ) $more = sprintf( __( '%4$d Comments%1$s on %2$s%3$s' ), $span, $title, $span_close, $number );
     1290        /* translators: 1: Opening span with a class, 2: title, 3: closing span */
    12861291        if ( false === $none ) $none = sprintf( __( 'Comments Off%1$s on %2$s%3$s' ), $span, $title, $span_close );
    12871292
    12881293        if ( 0 == $number && !comments_open() && !pings_open() ) {