2016-09-25 2 views
0

Wordpress를 사용하고 TML이라는 플러그인을 설치했습니다.THEME MY LOGIN 레지스터의 표시 텍스트를 변경하는 방법

기능을 사용하지 않고이 등록 페이지의 텍스트를 변경하고 싶습니다. enter image description here

나는 TML 플러그인의 소스 코드를 확인했고, 나는이 파일 "테마 내-로그인/템플릿/레지스터 form.php를"

<?php 
/* 
If you would like to edit this file, copy it to your current theme's directory and edit it there. 
Theme My Login will always look in your theme's directory first, before using this default template. 
*/ 
?> 
<div class="tml tml-register" id="theme-my-login<?php $template->the_instance(); ?>"> 
    <?php $template->the_action_template_message('register'); ?> 
    <?php $template->the_errors(); ?> 
    <form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url('register', 'login_post'); ?>" method="post"> 
     <?php if ('email' != $theme_my_login->get_option('login_type')) : ?> 
     <p class="tml-user-login-wrap"> 
      <label for="user_login<?php $template->the_instance(); ?>"><?php _e('Username', 'theme-my-login'); ?></label> 
      <input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value('user_login'); ?>" size="20" /> 
     </p> 
     <?php endif; ?> 

     <p class="tml-user-email-wrap"> 
      <label for="user_email<?php $template->the_instance(); ?>"><?php _e('E-mail', 'theme-my-login'); ?></label> 
      <input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value('user_email'); ?>" size="20" /> 
     </p> 

     <?php do_action('register_form'); ?> 

     <p class="tml-registration-confirmation" id="reg_passmail<?php $template->the_instance(); ?>"><?php echo apply_filters('tml_register_passmail_template_message', __('Registration confirmation will be e-mailed to you.', 'theme-my-login')); ?></p> 

     <p class="tml-submit-wrap"> 
      <input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e('Register', 'theme-my-login'); ?>" /> 
      <input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url('register'); ?>" /> 
      <input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" /> 
      <input type="hidden" name="action" value="register" /> 
     </p> 
    </form> 
    <?php $template->the_action_links(array('register' => false)); ?> 
</div> 
필드 내가해야합니까을 발견했다 "등록" "비밀 번호"등과 같은 내 변화하는 디스플레이에 대해 변경하려면?

답변

0

당신은 _E가 "에 대한 번역을 얻을"의미

같은 필드 이름을 볼 수 있습니다. 사용자 이름에 대한 경우. 그리고 텍스트 도메인은 "theme-my-login"입니다. 따라서 언어 파일 만 변경할 수 있으며 PHP 파일을 편집하지 않고도 모두 설정할 수 있습니다.

관련 문제