WordPress.org

Plugin Directory

Changeset 621524


Ignore:
Timestamp:
11/06/12 03:08:07 (18 months ago)
Author:
mdawaffe
Message:

Publicize: Improve translation and translation sanitation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/publicize/publicize-jetpack.php

    r621353 r621524  
    4242    function admin_page_warning() { 
    4343        $jetpack = Jetpack::init(); 
     44        $blog_name = get_bloginfo( 'blogname' ); 
     45        if ( empty( $blog_name ) ) { 
     46            $blog_name = home_url( '/' ); 
     47        } 
     48 
    4449        ?> 
    4550                <div id="message" class="updated jetpack-message jp-connect"> 
     
    4752                        <div class="jetpack-text-container"> 
    4853                            <h4> 
    49                                 <p><?php _e( "To use Publicize you&#8217;ll need to link your account here to your WordPress.com account using the button to the right. If you don't have one yet you can sign up for free, in just a few seconds.", 'jetpack' ) ?></p> 
     54                            <p><?php printf( 
     55                                esc_html( wptexturize( __( "To use Publicize, you'll need to link your %s account to your WordPress.com account using the button to the right.", 'jetpack' ) ) ), 
     56                                '<strong>' . esc_html( $blog_name ) . '</strong>' 
     57                            ); ?></p> 
     58                            <p><?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' ) ) ); ?></p> 
    5059                            </h4> 
    5160                        </div> 
    5261                        <div class="jetpack-install-container"> 
    53                             <p class="submit"><a href="<?php echo $jetpack->build_connect_url(); ?>" class="button-connector" id="wpcom-connect"><?php _e( 'Link account with WordPress.com', 'jetpack' ); ?></a></p> 
     62                            <p class="submit"><a href="<?php echo $jetpack->build_connect_url(); ?>" class="button-connector" id="wpcom-connect"><?php esc_html_e( 'Link account with WordPress.com', 'jetpack' ); ?></a></p> 
    5463                        </div> 
    5564                    </div> 
     
    154163        if ( isset( $_GET['service'] ) ) { 
    155164            $service_name = $_GET['service']; 
    156             $m = sprintf ( __( 'There was a problem connecting to %s to create an authorized connection. Please try again in a moment.', 'jetpack' ), Publicize::get_service_label( $service_name ) ); 
     165            $m = sprintf( __( 'There was a problem connecting to %s to create an authorized connection. Please try again in a moment.', 'jetpack' ), Publicize::get_service_label( $service_name ) ); 
    157166        } else { 
    158167            $m = __( 'There was a problem connecting with Publicize. Please try again in a moment.', 'jetpack' ); 
    159168        } 
    160169        echo "<div class='error'>\n"; 
    161         echo "<p>{$m}</p>\n"; 
     170        echo '<p>' . esc_html( $m ) . "</p>\n"; 
    162171        echo "</div>\n\n"; 
    163172    } 
     
    301310            ?> 
    302311 
    303             <p><?php _e( 'Publicize to my <strong>Facebook Wall</strong>:' ) ?></p> 
     312            <p><?php printf( 
     313                esc_html__( 'Publicize to my %s:', 'jetpack' ), 
     314                '<strong>' . esc_html__( 'Facebook Wall' ) . '</strong>' 
     315            ); ?></p> 
    304316            <table id="option-profile"> 
    305317                <tbody> 
     
    314326            <?php if ( $pages ) : ?> 
    315327 
    316                 <p><?php _e( 'Publicize to my <strong>Facebook Page</strong>:' ) ?></p> 
     328                <p><?php printf( 
     329                    esc_html__( 'Publicize to my %s:', 'jetpack' ), 
     330                    '<strong>' . esc_html__( 'Facebook Page' ) . '</strong>' 
     331                ); ?></p> 
    317332                <table id="option-fb-fanpage"> 
    318333                    <tbody> 
     
    435450            ?> 
    436451 
    437             <p><?php _e( 'Publicize to my <strong>Tumblr blog</strong>:' ) ?></p> 
     452            <p><?php printf( 
     453                esc_html__( 'Publicize to my %s:', 'jetpack' ), 
     454                '<strong>' . esc_html__( 'Tumblr blog' ) . '</strong>' 
     455            ); ?></p> 
    438456 
    439457            <ul id="option-tumblr-blog"> 
Note: See TracChangeset for help on using the changeset viewer.