Make WordPress Core


Ignore:
Timestamp:
04/10/2016 02:02:04 AM (8 years ago)
Author:
jeremyfelt
Message:

4.5 About Page, second round.

  • Adjust text.
  • Improve headings hierarchy.
  • Add translation functions and translator comments throughout.

Props ocean90, afercia, ramiy, mikeschroder, mattfelten, helen.
See #36173.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r37169 r37170  
    6262            <h2><?php _e( 'Editing Improvements' ); ?></h2>
    6363            <div class="col">
    64                 <img src="https://cldup.com/klO9vWGiT3.png" />
     64                <img src="https://cldup.com/klO9vWGiT3.png" alt="" />
    6565                <h3><?php _e( 'Inline Linking' ); ?></h3>
    6666                <p><?php _e( 'Stay focused on your writing with a less distracting interface that keeps you in place and allows you to easily link to your content.' ); ?></p>
    6767            </div>
    6868            <div class="col">
    69                 <img src="https://cldup.com/TE-OBMWHkX.png" />
     69                <img src="https://cldup.com/TE-OBMWHkX.png" alt="" />
    7070                <h3><?php _e( 'Formatting Shortcuts' ); ?></h3>
    7171                <p><?php _e( 'Do you enjoy using formatting shortcuts for lists and headings? Now they&#8217;re even more useful, with horizontal lines and <code>&lt;code&gt;</code>.' ); ?></p>
     
    7878            <h2><?php _e( 'Customization Improvements' ); ?></h2>
    7979            <div class="col">
    80                 <img src="https://cldup.com/0iRJNVbt4G.png" />
     80                <img src="https://cldup.com/0iRJNVbt4G.png" alt="" />
    8181                <h3><?php _e( 'Live Responsive Previews' ); ?></h3>
    82                 <?php
    83                 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' ) );
    86                 } else {
    87                     $customizer_link = __( 'customizer' );
    88                 }
    89                 ?>
    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>
    91             </div>
    92             <div class="col">
    93                 <img src="https://cldup.com/HWDA8xR_8G.png" />
     82                <p><?php _e( 'Make sure your site looks great on all screens!' ); ?>
     83                    <?php
     84                    if ( current_user_can( 'customize' ) ) {
     85                        $customize_url = admin_url( 'customize.php' );
     86                        printf(
     87                            /* translators: %s: URL to customizer */
     88                            __( 'Preview mobile, tablet, and desktop views directly in the <a href="%s" class="load-customize">customizer</a>.' ),
     89                            esc_url( $customize_url )
     90                        );
     91                    } else {
     92                        _e( 'Preview mobile, tablet, and desktop views directly in the customizer.' );
     93                    }
     94                ?></p>
     95            </div>
     96            <div class="col">
     97                <img src="https://cldup.com/HWDA8xR_8G.png" alt="" />
    9498                <h3><?php _e( 'Custom Logos' ); ?></h3>
    9599                <p><?php _e( 'Themes can now support logos for your business or brand.' ); ?>
    96100                    <?php
    97101                    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 ) );
     102                        printf(
     103                            /* translators: %s: URL to Site Identity section of the customizer */
     104                            __( '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.' ),
     105                            esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) )
     106                        );
    99107                    } 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.' );
     108                        _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.' );
    101109                    }
    102110                    ?></p>
     
    107115
    108116        <div class="changelog">
    109             <h3><?php _e( 'Under the Hood' ); ?></h3>
     117            <h2><?php _e( 'Under the Hood' ); ?></h2>
    110118
    111119            <div class="under-the-hood three-col">
    112120                <div class="col">
    113                     <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>
    115                 </div>
    116                 <div class="col">
    117                     <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/' );
     121                    <h3><?php _e( 'Smart Image Resizing' ); ?></h3>
     122                    <p><?php
     123                        printf(
     124                            /* translators: %s: URL to the development post of the new feature */
     125                            __( 'Generated images now load up to 50&#37; faster with no noticeable quality loss. <a href="%s">It&#8217;s really cool</a>.' ),
     126                            'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/'
     127                        );
     128                    ?></p>
     129                </div>
     130                <div class="col">
     131                    <h3><?php _e( 'Selective Refresh' ); ?></h3>
     132                    <p><?php
     133                        printf(
     134                            /* translators: %s: URL to the development post of the new feature */
     135                            __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ),
     136                            'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/'
     137                        );
    120138                        if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) {
    121139                            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 ) );
     140                                printf(
     141                                    /* translators: %s: URL to Menus section of the customizer  */
     142                                    ' ' . __( 'See it in action with <a href="%s" class="load-customize">Menus</a>.' ),
     143                                    esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) )
     144                                );
    123145                            } 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 ) );
     146                                printf(
     147                                    /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */
     148                                    ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ),
     149                                    esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ),
     150                                    esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) )
     151                                );
    125152                            }
    126153                        }
     
    128155                </div>
    129156                <div class="col">
    130                     <h4><?php _e( 'JavaScript Library Updates' ); ?></h4>
     157                    <h3><?php _e( 'JavaScript Library Updates' ); ?></h3>
    131158                    <p><?php _e( 'jQuery 1.12.3, jQuery Migrate 1.4.0, Backbone 1.2.3, and Underscore 1.8.3 are bundled.' ); ?></p>
    132159                </div>
     
    135162            <div class="under-the-hood two-col">
    136163                <div class="col">
    137                     <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>
    139                 </div>
    140                 <div class="col">
    141                     <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>
     164                    <h3><?php _e( 'Script Loader Improvements' ); ?></h3>
     165                    <p><?php
     166                        printf(
     167                            /* translators: %s: wp_add_inline_script() */
     168                            __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ),
     169                            '<code><a href="https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/">wp_add_inline_script()</a></code>'
     170                        );
     171                    ?></p>
     172                </div>
     173                <div class="col">
     174                    <h3><?php _e( 'Better Embed Templates' ); ?></h3>
     175                    <p><?php
     176                        printf(
     177                            /* translators: %s: URL to the development post of the new feature */
     178                            __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ),
     179                            'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/'
     180                        );
     181                    ?></p>
    143182                </div>
    144183            </div>
Note: See TracChangeset for help on using the changeset viewer.