Make WordPress Core

Changeset 38342


Ignore:
Timestamp:
08/23/2016 11:32:15 PM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for strings in wp-includes/class-walker-comment.php.

Merge two similar strings.

Props ramiy.
Fixes #37796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-comment.php

    r37325 r38342  
    274274        <div class="comment-author vcard">
    275275            <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    276             <?php printf( __( '<cite class="fn">%s</cite> <span class="says">says:</span>' ), get_comment_author_link( $comment ) ); ?>
     276            <?php
     277                /* translators: %s: comment author link */
     278                printf( __( '%s <span class="says">says:</span>' ),
     279                    sprintf( '<cite class="fn">%s</cite>', get_comment_author_link( $comment ) )
     280                );
     281            ?>
    277282        </div>
    278283        <?php if ( '0' == $comment->comment_approved ) : ?>
     
    326331                    <div class="comment-author vcard">
    327332                        <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    328                         <?php printf( __( '%s <span class="says">says:</span>' ), sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) ) ); ?>
     333                        <?php
     334                            /* translators: %s: comment author link */
     335                            printf( __( '%s <span class="says">says:</span>' ),
     336                                sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) )
     337                            );
     338                        ?>
    329339                    </div><!-- .comment-author -->
    330340
Note: See TracChangeset for help on using the changeset viewer.