Skip to content

Commit

Permalink
Added text domain to translation calls in functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Jan 5, 2014
1 parent cf7b73d commit 0ff6273
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function wp_doc_comment( $comment, $args, $depth ) {
<article id="comment-<?php comment_ID(); ?>" class="comment">

<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e('Your example is awaiting moderation.'); ?></em>
<em class="comment-awaiting-moderation"><?php _e( 'Your example is awaiting moderation.', 'wporg' ); ?></em>
<br />
<?php endif; ?>

Expand All @@ -47,18 +47,18 @@ function wp_doc_comment( $comment, $args, $depth ) {
echo get_avatar( $comment );

/* translators: 1: comment author, 2: date and time */
printf( __('Contributed by %1$s on %2$s'),
printf( __( 'Contributed by %1$s on %2$s', 'wporg' ),
sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
sprintf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: date, 2: time */
sprintf( __('%1$s at %2$s'), get_comment_date(), get_comment_time() )
sprintf( __( '%1$s at %2$s', 'wporg' ), get_comment_date(), get_comment_time() )
)
);
?>

<?php edit_comment_link( __('Edit'), '<span class="edit-link">', '</span>' ); ?>
<?php edit_comment_link( __( 'Edit', 'wporg' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .comment-author .vcard -->

</footer>
Expand Down

0 comments on commit 0ff6273

Please sign in to comment.