Update textdomain

This commit is contained in:
Hoang Huu 2019-09-13 16:34:18 +07:00
parent dd3eb5dbec
commit 6f04b5c956
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ class OpalEstate_Admin_User{
$link = get_edit_post_link( $agency_id ); $link = get_edit_post_link( $agency_id );
?> ?>
<div id="message" class="updated fade"> <div id="message" class="updated fade">
<p><?php echo sprintf( esc_html__('This user has role <strong>Opal Estate Agency</strong> and click here to <a href="%s">update Agency profile</a>', 'opalestate-pro'), $link ); ?></p> <p><?php echo sprintf( __('This user has role <strong>Opal Estate Agency</strong> and click here to <a href="%s">update Agency profile</a>', 'opalestate-pro'), $link ); ?></p>
</div> </div>
<?php elseif( in_array( 'opalestate_agent', $roles) ) : <?php elseif( in_array( 'opalestate_agent', $roles) ) :
$agent_id = get_user_meta( $user_id, OPALESTATE_USER_PROFILE_PREFIX . 'related_id', true ); $agent_id = get_user_meta( $user_id, OPALESTATE_USER_PROFILE_PREFIX . 'related_id', true );
@ -56,7 +56,7 @@ class OpalEstate_Admin_User{
$link = get_edit_post_link( $agent_id ); $link = get_edit_post_link( $agent_id );
?> ?>
<div id="message" class="updated fade"> <div id="message" class="updated fade">
<p><?php echo sprintf( esc_html__('This user has role <strong>Opal Estate Agent</strong> and click here to <a href="%s">update Agent profile</a>', 'opalestate-pro'), $link ); ?></p> <p><?php echo sprintf( __('This user has role <strong>Opal Estate Agent</strong> and click here to <a href="%s">update Agent profile</a>', 'opalestate-pro'), $link ); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php <?php

View File

@ -165,7 +165,7 @@ class OpalEstate_User {
$link = get_edit_post_link( $agency_id ); $link = get_edit_post_link( $agency_id );
?> ?>
<div id="message" class="updated fade"> <div id="message" class="updated fade">
<p><?php echo sprintf( esc_html__( 'This user has role <strong>Opal Estate Agency</strong> and click here to <a target="_blank" href="%s">update Agency profile</a>', <p><?php echo sprintf( __( 'This user has role <strong>Opal Estate Agency</strong> and click here to <a target="_blank" href="%s">update Agency profile</a>',
'opalestate-pro' ), $link ); ?></p> 'opalestate-pro' ), $link ); ?></p>
</div> </div>
<?php elseif ( in_array( 'opalestate_agent', $roles ) ) : <?php elseif ( in_array( 'opalestate_agent', $roles ) ) :
@ -176,7 +176,7 @@ class OpalEstate_User {
$link = get_edit_post_link( $agent_id ); $link = get_edit_post_link( $agent_id );
?> ?>
<div id="message" class="updated fade"> <div id="message" class="updated fade">
<p><?php echo sprintf( esc_html__( 'This user has role <strong>Opal Estate Agent</strong> and click here to <a target="_blank" href="%s">update Agent profile</a>', <p><?php echo sprintf( __( 'This user has role <strong>Opal Estate Agent</strong> and click here to <a target="_blank" href="%s">update Agent profile</a>',
'opalestate-pro' ), $link ); ?></p> 'opalestate-pro' ), $link ); ?></p>
</div> </div>
<?php endif; ?> <?php endif; ?>