Improve "Posted on" translation string

This commit is contained in:
Ulrich Pogson 2013-07-10 22:23:46 +02:00
parent 77b0fa51ae
commit 36ad7cb751
1 changed files with 12 additions and 7 deletions

View File

@ -177,13 +177,18 @@ function _s_posted_on() {
esc_html( get_the_modified_date() )
);
printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark">%3$s</a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', '_s' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string,
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ),
get_the_author()
printf( __( '<span class="posted-on">Posted on %1$s</span><span class="byline"> by %2$s</span>', '_s' ),
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">' . $time_string . '</a>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
),
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ),
esc_html( get_the_author() )
)
);
}
endif;