WordPress.org

Ready to get started?Download WordPress

Forums

Translate comment-template.php (3 posts)

  1. CrossX
    Member
    Posted 3 years ago #

    Is any way how to translate Leave a Reply without editing comment-template.php`wp-includes\comment-template.php (4 hits)
    Line 1198: if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
    Line 1199: if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );
    Line 1542: 'title_reply' => __( 'Leave a Reply' ),
    Line 1543: 'title_reply_to' => __( 'Leave a Reply to %s' ),`

  2. chinmoy
    Member
    Posted 3 years ago #

    don't edit wp-includes\comment-template.php file. edit your theme's comment.php file. see this http://chinmoy29.wordpress.com/2010/07/23/twenty-ten-theme-customization/#comment-32

    edit this line <?php comment_form() ?>

  3. CrossX
    Member
    Posted 3 years ago #

    Cool thanks,

    but what about the button REPLY?:

    function get_comment_reply_link($args = array(), $comment = null, $post = null) {
    	global $user_ID;
    
    	$defaults = array('add_below' => 'comment', 'respond_id' => 'respond', 'reply_text' => __('Reply'),
    		'login_text' => __('Log in to Reply'), 'depth' => 0, 'before' => '', 'after' => '');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags