WordPress.org

Plugin Directory

Changeset 621518


Ignore:
Timestamp:
11/06/12 02:57:11 (18 months ago)
Author:
mdawaffe
Message:

Post By Email: Improve translation and translation sanitation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/post-by-email.php

    r621508 r621518  
    7979    } 
    8080 
    81     function user_profile() { ?> 
     81    function user_profile() { 
     82        $blog_name = get_bloginfo( 'blogname' ); 
     83        if ( empty( $blog_name ) ) { 
     84            $blog_name = home_url( '/' ); 
     85        } 
     86 
     87        ?> 
    8288        <div id="post-by-email" class="jetpack-targetable"> 
    8389        <h3><?php esc_html_e( 'Post by Email', 'jetpack' ); ?></h3> 
    8490        <table class="form-table"> 
    8591            <tr> 
    86                 <th scope="row"><?php _e( 'Email Address', 'jetpack' ); ?><span id="jp-pbe-spinner" class="spinner"></span></th> 
     92                <th scope="row"><?php esc_html_e( 'Email Address', 'jetpack' ); ?><span id="jp-pbe-spinner" class="spinner"></span></th> 
    8793                <td> 
    8894                <div id="jp-pbe-error" class="jetpack-inline-error"></div> <?php 
     
    99105                    } ?> 
    100106             
    101                     <input type="button" name="jp-pbe-enable" id="jp-pbe-enable" class="button" value="<?php _e( 'Enable Post By Email', 'jetpack' ); ?> "<?php echo $enable_hidden; ?> /> 
     107                    <input type="button" name="jp-pbe-enable" id="jp-pbe-enable" class="button" value="<?php esc_attr_e( 'Enable Post By Email', 'jetpack' ); ?> "<?php echo $enable_hidden; ?> /> 
    102108                    <div id="jp-pbe-info"<?php echo $info_hidden; ?>> 
    103109                        <p id="jp-pbe-email-wrapper"> 
     
    105111                        </p> 
    106112                        <p> 
    107                             <input type="button" name="jp-pbe-regenerate" id="jp-pbe-regenerate" class="button" value="<?php _e( 'Regenerate Address', 'jetpack' ); ?> " /> 
    108                             <input type="button" name="jp-pbe-disable" id="jp-pbe-disable" class="button" value="<?php _e( 'Disable Post By Email', 'jetpack' ); ?> " /> 
     113                            <input type="button" name="jp-pbe-regenerate" id="jp-pbe-regenerate" class="button" value="<?php esc_attr_e( 'Regenerate Address', 'jetpack' ); ?> " /> 
     114                            <input type="button" name="jp-pbe-disable" id="jp-pbe-disable" class="button" value="<?php esc_attr_e( 'Disable Post By Email', 'jetpack' ); ?> " /> 
    109115                        </p> 
    110116                    </div> <?php 
     
    113119         
    114120                    <p class="jetpack-inline-message"> 
    115                         <?php _e( "To use Post By Email you&#8217;ll need to link your account here to your WordPress.com account.", 'jetpack' ); ?><br /> 
    116                         <?php _e( "If you don't have one yet you can sign up for free, in just a few seconds.", 'jetpack' ) ?> 
     121                        <?php printf( 
     122                            esc_html( wptexturize( __( 'To use Post By Email, you need to link your %s account to your WordPress.com account.', 'jetpack' ) ) ), 
     123                            '<strong>' . esc_html( $blog_name ) . '</strong>' 
     124                        ); ?><br /> 
     125                        <?php echo esc_html( wptexturize( __( "If you don't have a WordPress.com account yet, you can sign up for free in just a few seconds.", 'jetpack' ) ) ); ?> 
    117126                    </p> 
    118127                    <p> 
    119                         <a href="<?php echo $jetpack->build_connect_url( false, admin_url( 'profile.php#post-by-email' ) ); ?>" class="button button-connector" id="wpcom-connect"><?php _e( 'Link account with WordPress.com', 'jetpack' ); ?></a> 
     128                        <a href="<?php echo $jetpack->build_connect_url( false, admin_url( 'profile.php#post-by-email' ) ); ?>" class="button button-connector" id="wpcom-connect"><?php esc_html_e( 'Link account with WordPress.com', 'jetpack' ); ?></a> 
    120129                    </p> 
    121130                    <?php 
Note: See TracChangeset for help on using the changeset viewer.