基本的に「_e( ‘Your Answer’, ‘dw-question-answer’ )」のように「_e」から始まっている部分が出力される箇所です。
Your Answer の部分を表示したい日本語に変えてあげます。
実際のPHPの中身はこちら
これで基本的な表示に関しては日本語化できてるんですが、検索した時にマッチしませんでしたよ!とか、投稿した時に未記入の項目があるよ!っていうエラー文が英語のままだったりするので、そこも直していくよ!

基本的に「_e( ‘Your Answer’, ‘dw-question-answer’ )」のように「_e」から始まっている部分が出力される箇所です。
Your Answer の部分を表示したい日本語に変えてあげます。
これで基本的な表示に関しては日本語化できてるんですが、検索した時にマッチしませんでしたよ!とか、投稿した時に未記入の項目があるよ!っていうエラー文が英語のままだったりするので、そこも直していくよ!
<?php /** * The template for displaying answer submit form * * @package DW Question & Answer * @since DW Question & Answer 1.4.3 */ ?> <div class="dwqa-answer-form"> <?php do_action( 'dwqa_before_answer_submit_form' ); ?> <div class="dwqa-answer-form-title"><?php _e( '回答する▼', 'dw-question-answer' ) ?></div> <form name="dwqa-answer-form" id="dwqa-answer-form" method="post" enctype="multipart/form-data"> <?php dwqa_print_notices(); ?> <?php $content = isset( $_POST['answer-content'] ) ? sanitize_text_field( $_POST['answer-content'] ) : ''; ?> <?php dwqa_init_tinymce_editor( array( 'content' => $content, 'textarea_name' => 'answer-content', 'id' => 'dwqa-answer-content' ) ) ?> <?php dwqa_load_template( 'captcha', 'form' ); ?> <?php if ( dwqa_current_user_can( 'post_answer' ) && !is_user_logged_in() ) : ?> <p> <label for="user-email"><?php _e( 'メール', 'dw-question-answer' ) ?></label> <?php $email = isset( $_POST['user-email'] ) ? sanitize_email( $_POST['user-email'] ) : ''; ?> <input type="email" class="" name="user-email" value="<?php echo $email ?>" > </p> <p> <label for="user-name"><?php _e( '名前', 'dw-question-answer' ) ?></label> <?php $name = isset( $_POST['user-name'] ) ? esc_html( $_POST['user-name'] ) : ''; ?> <input type="text" class="" name="user-name" value="<?php echo $name ?>" > </p> <?php endif; ?> <select class="dwqa-select" name="dwqa-status"> <optgroup label="<?php _e( '閲覧許可', 'dw-question-answer' ) ?>"> <option value="publish"><?php _e( '誰でも', 'dw-question-answer' ) ?></option> <option value="private"><?php _e( '自分のみ', 'dw-question-answer' ) ?></option> </optgroup> </select> <?php do_action('dwqa_before_answer_submit_button'); ?> <input type="submit" name="submit-answer" class="dwqa-btn dwqa-btn-primary" value="<?php _e( '投稿する', 'dw-question-answer' ) ?>"> <input type="hidden" name="question_id" value="<?php the_ID(); ?>"> <input type="hidden" name="dwqa-action" value="add-answer"> <?php wp_nonce_field( '_dwqa_add_new_answer' ) ?> </form> <?php do_action( 'dwqa_after_answer_submit_form' ); ?> </div><?php /** * The template for editing question and answer * * @package DW Question & Answer * @since DW Question & Answer 1.4.3 */ ?> <?php $comment_id = isset( $_GET['comment_edit'] ) && is_numeric( $_GET['comment_edit'] ) ? intval( $_GET['comment_edit'] ) : false; $edit_id = isset( $_GET['edit'] ) && is_numeric( $_GET['edit'] ) ? intval( $_GET['edit'] ) : ( $comment_id ? $comment_id : false ); if ( !$edit_id ) return; $type = $comment_id ? 'comment' : ( 'dwqa-question' == get_post_type( $edit_id ) ? 'question' : 'answer' ); ?> <?php do_action( 'dwqa_before_edit_form' ); ?> <form method="post" class="dwqa-content-edit-form" enctype="multipart/form-data"> <?php if ( 'dwqa-question' == get_post_type( $edit_id ) ) : ?> <?php $title = dwqa_question_get_edit_title( $edit_id ) ?> <p> <label for="question_title"><?php _e( 'タイトル', 'dw-question-answer' ) ?></label> <input type="text" name="question_title" value="<?php echo $title ?>" tabindex="1"> </p> <?php endif; ?> <?php $content = call_user_func( 'dwqa_' . $type . '_get_edit_content', $edit_id ); ?> <p><?php dwqa_init_tinymce_editor( array( 'content' => $content, 'textarea_name' => $type . '_content', 'wpautop' => true ) ) ?></p> <?php if ( 'dwqa-question' == get_post_type( $edit_id ) ) : ?> <p> <label for="question-category"><?php _e( 'カテゴリー', 'dw-question-answer' ) ?></label> <?php $category = wp_get_post_terms( $edit_id, 'dwqa-question_category' ); ?> <?php wp_dropdown_categories( array( 'name' => 'question-category', 'id' => 'question-category', 'taxonomy' => 'dwqa-question_category', 'show_option_none' => __( 'Select question category', 'dw-question-answer' ), 'hide_empty' => 0, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ), 'selected' => isset( $category[0]->term_id ) ? $category[0]->term_id : false, ) ); ?> </p> <p> <label for="question-tag"><?php _e( 'タグ', 'dw-question-answer' ) ?></label> <input type="text" class="" name="question-tag" value="<?php dwqa_get_tag_list( get_the_ID(), true ); ?>" > </p> <?php endif; ?> <?php do_action('dwqa_after_show_content_edit', $edit_id); ?> <?php do_action( 'dwqa_before_edit_submit_button' ) ?> <input type="hidden" name="<?php echo $type ?>_id" value="<?php echo $edit_id ?>"> <?php wp_nonce_field( '_dwqa_edit_' . $type ) ?> <input type="submit" name="dwqa-edit-<?php echo $type ?>-submit" value="<?php _e( '変更を保存', 'dw-question-answer' ) ?>" > </form> <?php do_action( 'dwqa_after_edit_form' ); ?><?php /** * The template for displaying question content * * @package DW Question & Answer * @since DW Question & Answer 1.4.3 */ ?> <div class="<?php echo dwqa_post_class(); ?>"> <div class="dwqa-question-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> <div class="dwqa-question-meta"> <?php dwqa_question_print_status() ?> <?php global $post; $user_id = get_post_field( 'post_author', get_the_ID() ) ? get_post_field( 'post_author', get_the_ID() ) : false; $time = human_time_diff( get_post_time( 'U', true ) ); $text = __( '投稿日', 'dw-question-answer' ); $latest_answer = dwqa_get_latest_answer(); if ( $latest_answer ) { $time = human_time_diff( strtotime( $latest_answer->post_date_gmt ) ); $text = __( '回答日', 'dw-question-answer' ); } ?> <?php printf( __( '<span><a href="%s">%s%s</a> %s %s 前</span>', 'dw-question-answer' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), $text, $time ) ?> <?php echo get_the_term_list( get_the_ID(), 'dwqa-question_category', '<span class="dwqa-question-category">' . __( ' • ', 'dw-question-answer' ), ', ', '</span>' ); ?> </div> <div class="dwqa-question-stats"> <span class="dwqa-views-count"> <?php $views_count = dwqa_question_views_count() ?> <?php printf( __( '<strong>%1$s</strong> 閲覧数', 'dw-question-answer' ), $views_count ); ?> </span> <span class="dwqa-answers-count"> <?php $answers_count = dwqa_question_answers_count(); ?> <?php printf( __( '<strong>%1$s</strong> 回答数', 'dw-question-answer' ), $answers_count ); ?> </span> <span class="dwqa-votes-count"> <?php $vote_count = dwqa_vote_count() ?> <?php printf( __( '<strong>%1$s</strong> 投票数', 'dw-question-answer' ), $vote_count ); ?> </span> </div> </div><?php /** * The template for displaying single questions * * @package DW Question & Answer * @since DW Question & Answer 1.4.3 */ ?> <?php do_action( 'dwqa_before_single_question_content' ); ?> <div class="dwqa-question-item"> <div class="dwqa-question-vote" data-nonce="<?php echo wp_create_nonce( '_dwqa_question_vote_nonce' ) ?>" data-post="<?php the_ID(); ?>"> <span class="dwqa-vote-count"><?php echo dwqa_vote_count() ?></span> <a class="dwqa-vote dwqa-vote-up" href="#"><?php _e( 'Vote Up', 'dw-question-answer' ); ?></a> <a class="dwqa-vote dwqa-vote-down" href="#"><?php _e( 'Vote Down', 'dw-question-answer' ); ?></a> </div> <div class="dwqa-question-meta"> <?php $user_id = get_post_field( 'post_author', get_the_ID() ) ? get_post_field( 'post_author', get_the_ID() ) : false ?> <?php printf( __( '<span><a href="%s">%s%s</a> %s 投稿 %s 前</span>', 'dw-question-answer' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), dwqa_print_user_badge( $user_id ), human_time_diff( get_post_time( 'U', true ) ) ) ?> <span class="dwqa-question-actions"><?php dwqa_question_button_action() ?></span> </div> <div class="dwqa-question-content"><hr><?php the_content(); ?><hr></div> <?php do_action('dwqa_after_show_content_question', get_the_ID()); ?> <div class="dwqa-question-footer"> <div class="dwqa-question-meta"> <?php echo get_the_term_list( get_the_ID(), 'dwqa-question_tag', '<span class="dwqa-question-tag">' . __( 'タグ: ', 'dw-question-answer' ), ', ', '</span>' ); ?> <?php if ( dwqa_current_user_can( 'edit_question', get_the_ID() ) ) : ?> <?php if ( dwqa_is_enable_status() ) : ?> <span class="dwqa-question-status"> <?php _e( '状況:', 'dw-question-answer' ) ?> <select id="dwqa-question-status" data-nonce="<?php echo wp_create_nonce( '_dwqa_update_privacy_nonce' ) ?>" data-post="<?php the_ID(); ?>"> <optgroup label="<?php _e( 'ステータス', 'dw-question-answer' ); ?>"> <option <?php selected( dwqa_question_status(), 'open' ) ?> value="open"><?php _e( '受付中', 'dw-question-answer' ) ?></option> <option <?php selected( dwqa_question_status(), 'closed' ) ?> value="close"><?php _e( '受付終了', 'dw-question-answer' ) ?></option> <option <?php selected( dwqa_question_status(), 'resolved' ) ?> value="resolved"><?php _e( '解決済み', 'dw-question-answer' ) ?></option> </optgroup> </select> </span> <?php endif; ?> <?php endif; ?> </div> </div> <?php do_action( 'dwqa_before_single_question_comment' ) ?> <?php comments_template(); ?> <?php do_action( 'dwqa_after_single_question_comment' ) ?> </div> <?php do_action( 'dwqa_after_single_question_content' ); ?><?php /** * The template for displaying single answers * * @package DW Question & Answer * @since DW Question & Answer 1.4.3 */ ?> <?php if ( dwqa_current_user_can( 'post_question' ) ) : ?> <?php do_action( 'dwqa_before_question_submit_form' ); ?> <form method="post" class="dwqa-content-edit-form" enctype="multipart/form-data"> <p class="dwqa-search"> <label for="question_title"><?php _e( 'タイトル', 'dw-question-answer' ) ?></label> <?php $title = isset( $_POST['question-title'] ) ? sanitize_title( $_POST['question-title'] ) : ''; ?> <input type="text" data-nonce="<?php echo wp_create_nonce( '_dwqa_filter_nonce' ) ?>" id="question-title" name="question-title" value="<?php echo $title ?>" tabindex="1"> </p> <?php $content = isset( $_POST['question-content'] ) ? sanitize_text_field( $_POST['question-content'] ) : ''; ?> <p><?php dwqa_init_tinymce_editor( array( 'content' => $content, 'textarea_name' => 'question-content', 'id' => 'question-content' ) ) ?></p> <?php global $dwqa_general_settings; ?> <?php if ( isset( $dwqa_general_settings['enable-private-question'] ) && $dwqa_general_settings['enable-private-question'] ) : ?> <p> <label for="question-status"><?php _e( 'ステータス', 'dw-question-answer' ) ?></label> <select class="dwqa-select" id="question-status" name="question-status"> <optgroup label="<?php _e( '閲覧許可', 'dw-question-answer' ) ?>"> <option value="publish"><?php _e( '誰でも', 'dw-question-answer' ) ?></option> <option value="private"><?php _e( '自分のみ', 'dw-question-answer' ) ?></option> </optgroup> </select> </p> <?php endif; ?> <p> <label for="question-category"><?php _e( 'カテゴリー', 'dw-question-answer' ) ?></label> <?php wp_dropdown_categories( array( 'name' => 'question-category', 'id' => 'question-category', 'taxonomy' => 'dwqa-question_category', 'show_option_none' => __( 'Select question category', 'dw-question-answer' ), 'hide_empty' => 0, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ), 'selected' => isset( $_POST['question-category'] ) ? sanitize_text_field( $_POST['question-category'] ) : false, ) ); ?> </p> <p> <label for="question-tag"><?php _e( 'タグ', 'dw-question-answer' ) ?></label> <?php $tags = isset( $_POST['question-tag'] ) ? sanitize_text_field( $_POST['question-tag'] ) : ''; ?> <input type="text" class="" name="question-tag" value="<?php echo $tags ?>" > </p> <?php if ( dwqa_current_user_can( 'post_question' ) && !is_user_logged_in() ) : ?> <p> <label for="_dwqa_anonymous_email"><?php _e( 'メール', 'dw-question-answer' ) ?></label> <?php $email = isset( $_POST['_dwqa_anonymous_email'] ) ? sanitize_email( $_POST['_dwqa_anonymous_email'] ) : ''; ?> <input type="email" class="" name="_dwqa_anonymous_email" value="<?php echo $email ?>" > </p> <p> <label for="_dwqa_anonymous_name"><?php _e( '名前', 'dw-question-answer' ) ?></label> <?php $name = isset( $_POST['_dwqa_anonymous_name'] ) ? sanitize_text_field( $_POST['_dwqa_anonymous_name'] ) : ''; ?> <input type="text" class="" name="_dwqa_anonymous_name" value="<?php echo $name ?>" > </p> <?php endif; ?> <?php wp_nonce_field( '_dwqa_submit_question' ) ?> <?php dwqa_load_template( 'captcha', 'form' ); ?> <?php do_action('dwqa_before_question_submit_button'); ?> <input type="submit" name="dwqa-question-submit" value="<?php _e( '投稿', 'dw-question-answer' ) ?>" > </form> <?php do_action( 'dwqa_after_question_submit_form' ); ?> <?php else : ?> <div class="alert"><?php _e( '質問を投稿する権限がありません。','dw-question-answer' ) ?></div> <?php endif; ?>