Make WordPress Core

Ticket #36173: 36173.17.diff

File 36173.17.diff, 8.6 KB (added by ocean90, 9 years ago)
  • src/wp-admin/about.php

     
    8181                                <h3><?php _e( 'Live Responsive Previews' ); ?></h3>
    8282                                <?php
    8383                                if ( current_user_can( 'customize' ) ) {
    84                                         $customize_url = esc_url( admin_url( 'customize.php' ) );
    85                                         $customizer_link = sprintf( __( '<a href="%1$s" class="load-customize">%2$s</a>' ), $customize_url, __( 'customizer' ) );
     84                                        $customize_url = admin_url( 'customize.php' );
     85                                        $customizer_link = sprintf( __( '<a href="%1$s" class="load-customize">%2$s</a>' ), esc_url( $customize_url ), __( 'customizer' ) );
    8686                                } else {
    8787                                        $customizer_link = __( 'customizer' );
    8888                                }
    8989                                ?>
    90                                 <p><?php printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link ); ?></p>
     90                                <p><?php
     91                                        /* translators: "customizer", linked to Site Identity section of the customizer if theme support exists */
     92                                        printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link );
     93                                ?></p>
    9194                        </div>
    9295                        <div class="col">
    9396                                <img src="https://cldup.com/HWDA8xR_8G.png" />
     
    9598                                <p><?php _e( 'Themes can now support logos for your business or brand.' ); ?>
    9699                                        <?php
    97100                                        if ( current_theme_supports( 'custom-logo' ) && current_user_can( 'customize' ) ) {
    98                                                 printf( __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ), add_query_arg( 'autofocus[section]', 'title_tagline', $customize_url ) );
     101                                                printf(
     102                                                        /* translators: %s: URL to Site Identity section of the customizer */
     103                                                        __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ),
     104                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) )
     105                                                );
    99106                                        } else {
    100                                                 _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the Customizer.' );
     107                                                _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' );
    101108                                        }
    102109                                        ?></p>
    103110                        </div>
     
    111118                        <div class="under-the-hood three-col">
    112119                                <div class="col">
    113120                                        <h4><?php _e( 'Smart Image Resizing' ); ?></h4>
    114                                         <p><?php printf( __( 'Generated images now load up to 50&#37; faster with no noticeable quality loss. <a href="%s">It&#8217;s really cool</a>.' ), 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' ); ?></p>
     121                                        <p><?php
     122                                                printf(
     123                                                        /* translators: %s: URL to the development post of the new feature */
     124                                                        __( 'Generated images now load up to 50&#37; faster with no noticeable quality loss. <a href="%s">It&#8217;s really cool</a>.' ),
     125                                                        'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/'
     126                                                );
     127                                        ?></p>
    115128                                </div>
    116129                                <div class="col">
    117130                                        <h4><?php _e( 'Selective Refresh' ); ?></h4>
    118                                         <p><?php
    119                                                 printf( __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' );
     131                                        <p><?php
     132                                                printf(
     133                                                        /* translators: %s: URL to the development post of the new feature */
     134                                                        __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ),
     135                                                        'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/'
     136                                                );
    120137                                                if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) {
    121138                                                        if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) {
    122                                                                 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ) );
     139                                                                printf(
     140                                                                        /* translators: %s: URL to Menus section of the customizer  */
     141                                                                        ' ' . __( 'See it in action with <a href="%s" class="load-customize">Menus</a>.' ),
     142                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) )
     143                                                                );
    123144                                                        } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget.
    124                                                                 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ), add_query_arg( 'autofocus[panel]', 'widgets', $customize_url ) );
     145                                                                printf(
     146                                                                        /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */
     147                                                                        ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ),
     148                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ),
     149                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) )
     150                                                                );
    125151                                                        }
    126152                                                }
    127153                                        ?></p>
     
    135161                        <div class="under-the-hood two-col">
    136162                                <div class="col">
    137163                                        <h4><?php _e( 'Script Loader Improvements' ); ?></h4>
    138                                         <p><?php printf( __( 'Better support has been added for script header/footer dependencies. New <code><a href="%s">wp_add_inline_script()</a></code> enables adding extra code to registered scripts.' ), 'https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/' ); ?></p>
     164                                        <p><?php
     165                                                printf(
     166                                                        /* translators: %s: wp_add_inline_script() */
     167                                                        __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ),
     168                                                        '<code><a href="https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/">wp_add_inline_script()</a></code>'
     169                                                );
     170                                        ?></p>
    139171                                </div>
    140172                                <div class="col">
    141173                                        <h4><?php _e( 'Better Embed Templates' ); ?></h4>
    142                                         <p><?php printf( __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ), 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' ); ?></p>
     174                                        <p><?php
     175                                                printf(
     176                                                        /* translators: %s: URL to the development post of the new feature */
     177                                                        __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ),
     178                                                        'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/'
     179                                                );
     180                                        ?></p>
    143181                                </div>
    144182                        </div>
    145183
  • src/wp-admin/credits.php

     
    2020
    2121<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2222
    23 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>
     23<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you&#8217;re writing or building your site.' ), $display_version ); ?></div>
    2424
    2525<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2626
  • src/wp-admin/freedoms.php

     
    1919
    2020<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2121
    22 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>
     22<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you&#8217;re writing or building your site.' ), $display_version ); ?></div>
    2323
    2424<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2525