Make WordPress Core

Changeset 18303


Ignore:
Timestamp:
06/13/2011 02:50:35 PM (14 years ago)
Author:
nbachiyski
Message:

Split the comment date and time string into two and add translator comments. See #17777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/functions.php

    r18276 r18303  
    514514                        echo get_avatar( $comment, $avatar_size );
    515515
    516                         printf( __( '%1$s on %2$s%3$s at %4$s%5$s <span class="says">said:</span>', 'twentyeleven' ),
     516                        /* translators: 1: comment author, 2: date and time */
     517                        printf( __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
    517518                            sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
    518                             '<a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '"><time pubdate datetime="' . get_comment_time( 'c' ) . '">',
    519                             get_comment_date(),
    520                             get_comment_time(),
    521                             '</time></a>'
     519                            sprintf( '<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>',
     520                                esc_url( get_comment_link( $comment->comment_ID ) ),
     521                                get_comment_time( 'c' ),
     522                                /* translators: 1: date, 2: time*/
     523                                sprintf( __('%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() )
     524                            )
    522525                        );
    523526                    ?>
Note: See TracChangeset for help on using the changeset viewer.