WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/13/2009 03:53:39 AM (12 years ago)
Author:
ryan
Message:

gettext comments. Props nbachiyski. see #9112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r10764 r10774  
    14471447            <ul id="recentcomments"><?php
    14481448            if ( $comments ) : foreach ( (array) $comments as $comment) :
    1449             echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
     1449            echo  '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
    14501450            endforeach; endif;?></ul>
    14511451        <?php echo $after_widget; ?>
Note: See TracChangeset for help on using the changeset viewer.