WordPress.org

Make WordPress Core

Changeset 32136


Ignore:
Timestamp:
04/15/2015 06:18:53 PM (4 years ago)
Author:
ocean90
Message:

About page: All strings are available for translation.

  • Remove AJAX call added in [30840].
  • Remove <code> tags out of localized strings.

props johnbillion, ocean90.
see #31929.

File:
1 edited

Legend:

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

    r32135 r32136  
    2828<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
    2929
    30 <div class="about-text"><?php printf( ( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), $display_version ); ?></div>
     30<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), $display_version ); ?></div>
    3131
    3232<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
     
    4949            <img src="//s.w.org/images/core/4.1/focus.png" class="base-image" />
    5050        </div>
    51         <h3><?php echo ( 'An easier way to share content' ); ?></h3>
    52         <p><?php printf( 'Clip it, edit it, publish it. Get familiar with the new and improved Press This. From the <a href="%s">Tools</a> menu, add Press This to your browser bookmark bar or your mobile device home screen. Once installed you can share your content with lightning speed. Sharing your favorite videos, images, and content has never been this fast or this easy.', admin_url( 'tools.php' ) ); ?></p>
     51        <h3><?php _e( 'An easier way to share content' ); ?></h3>
     52        <p><?php printf( __( 'Clip it, edit it, publish it. Get familiar with the new and improved Press This. From the <a href="%s">Tools</a> menu, add Press This to your browser bookmark bar or your mobile device home screen. Once installed you can share your content with lightning speed. Sharing your favorite videos, images, and content has never been this fast or this easy.' ), admin_url( 'tools.php' ) ); ?></p>
    5353        <p><?php _e( 'Drag the bookmarklet below to your bookmarks bar. Then, when you&#8217;re on a page you want to share, simply &#8220;press&#8221; it.' ); ?> [bookmarklet]</p>
    5454    </div>
     
    6262    <div class="feature-section">
    6363        <div class="col">
    64             <h3><?php echo ( 'Extended character support' ); ?></h3>
    65             <p><?php echo ( 'Writing in WordPress, whatever your language, just got better. WordPress 4.2 supports a host of new characters out-of-the-box, including native Chinese, Japanese, and Korean characters, musical and mathematical symbols, and hieroglyphs.' ); ?></p>
     64            <h3><?php _e( 'Extended character support' ); ?></h3>
     65            <p><?php _e( 'Writing in WordPress, whatever your language, just got better. WordPress 4.2 supports a host of new characters out-of-the-box, including native Chinese, Japanese, and Korean characters, musical and mathematical symbols, and hieroglyphs.' ); ?></p>
    6666            <p><?php
    6767                /* translators: 1: heart emoji, 2: frog face emoji, 3, monkey emoji, 4: pizza emoji, 5: Emoji Codex link */
    68                 printf( 'Don&#8217;t use any of those characters? You can still have fun &mdash; emoji are now available in WordPress! Get creative and decorate your content with %1$s, %2$s, %3$s, %4$s, and all the many other <a href="%5$s">emoji</a>.', '&#x1F499', '&#x1F438', '&#x1F412', '&#x1F355', __( 'https://codex.wordpress.org/Emoji' ) );
     68                printf( __( 'Don&#8217;t use any of those characters? You can still have fun &mdash; emoji are now available in WordPress! Get creative and decorate your content with %1$s, %2$s, %3$s, %4$s, and all the many other <a href="%5$s">emoji</a>.' ), '&#x1F499', '&#x1F438', '&#x1F412', '&#x1F355', __( 'https://codex.wordpress.org/Emoji' ) );
    6969            ?></p>
    7070        </div>
     
    9191            ) );
    9292            ?>
    93             <h4><?php echo ( 'Switch themes in the Customizer' ); ?></h4>
    94             <p><?php echo ( 'Browse and preview your installed themes from the Customizer. Make sure the theme looks great with <em>your</em> content, before it debuts on your site. ' ); ?></p>
     93            <h4><?php _e( 'Switch themes in the Customizer' ); ?></h4>
     94            <p><?php _e( 'Browse and preview your installed themes from the Customizer. Make sure the theme looks great with <em>your</em> content, before it debuts on your site. ' ); ?></p>
    9595        </div>
    9696        <div>
     
    104104            ) );
    105105            ?>
    106             <h4><?php echo ( 'Even more embeds' ); ?></h4>
    107             <p><?php echo ( 'Paste links from Tumblr.com and Kickstarter and watch them magically appear right in the editor. With every release, your publishing and editing experience get closer together.' ); ?></p>
     106            <h4><?php _e( 'Even more embeds' ); ?></h4>
     107            <p><?php _e( 'Paste links from Tumblr.com and Kickstarter and watch them magically appear right in the editor. With every release, your publishing and editing experience get closer together.' ); ?></p>
    108108        </div>
    109109        <div class="last-feature">
     
    117117            ) );
    118118            ?>
    119             <h4><?php echo ( 'Streamlined plugin updates' ); ?></h4>
    120             <p><?php echo ( 'Goodbye boring loading screen, hello smooth and simple plugin updates. Just click <em>Update Now</em> and watch the magic happen.' ); ?></p>
     119            <h4><?php _e( 'Streamlined plugin updates' ); ?></h4>
     120            <p><?php _e( 'Goodbye boring loading screen, hello smooth and simple plugin updates. Click <em>Update&nbsp;Now</em> and watch the magic happen.' ); ?></p>
    121121        </div>
    122122    </div>
     
    130130    <div class="feature-section col two-col">
    131131        <div>
    132             <h4><?php echo ( 'utf8mb4 support' ); ?></h4>
    133             <p><?php echo ( 'Database character encoding has changed from utf8 to utf8mb4, which adds support for a whole range of new 4-byte characters.' ); ?></p>
     132            <h4><?php _e( 'utf8mb4 support' ); ?></h4>
     133            <p><?php _e( 'Database character encoding has changed from utf8 to utf8mb4, which adds support for a whole range of new 4-byte characters.' ); ?></p>
    134134
    135             <h4><?php echo ( 'JavaScript accessibility' ); ?></h4>
    136             <p><?php echo ( 'You can now send audible notifications to screen readers in JavaScript with <code>wp.a11y.speak()</code>. Pass it a string, and an update will be sent to a dedicated ARIA live notifications area.' ); ?></p>
     135            <h4><?php _e( 'JavaScript accessibility' ); ?></h4>
     136            <p><?php
     137                /* translators: %s wp.a11y.speak() */
     138                printf( __( 'You can now send audible notifications to screen readers in JavaScript with %s. Pass it a string, and an update will be sent to a dedicated ARIA live notifications area.' ), '<code>wp.a11y.speak()</code>' );
     139            ?></p>
    137140        </div>
    138141        <div class="last-feature">
    139             <h4><?php echo ( 'Shared term splitting' ); ?></h4>
     142            <h4><?php _e( 'Shared term splitting' ); ?></h4>
    140143            <p><?php
    141144                /* translators: 1: Term splitting guide link */
    142                 printf ( 'Terms shared across multiple taxonomies will be split when one of them is updated. Find out more in the <a href="%1$s">Plugin Developer Handbook.</a>', 'https://developer.wordpress.org/plugins/taxonomy/working-with-split-terms-in-wp-4-2/' );
     145                printf( __( 'Terms shared across multiple taxonomies will be split when one of them is updated. Find out more in the <a href="%1$s">Plugin Developer Handbook.</a>' ), 'https://developer.wordpress.org/plugins/taxonomy/working-with-split-terms-in-wp-4-2/' );
    143146            ?></p>
    144147
    145             <h4><?php echo ( 'Complex query ordering' ); ?></h4>
    146             <p><?php echo ( '<code>WP_Query</code>, <code>WP_Comment_Query</code>, and <code>WP_User_Query</code> now support complex ordering with named meta query clauses.' ); ?></p>
     148            <h4><?php _e( 'Complex query ordering' ); ?></h4>
     149            <p><?php
     150                /* translators: 1: WP_Query, 2: WP_Comment_Query, 3: WP_User_Query */
     151                printf( __( '%1$s, %2$s, and %3$s now support complex ordering with named meta query clauses.' ), '<code>WP_Query</code>', '<code>WP_Comment_Query</code>', '<code>WP_User_Query</code>' );
     152            ?></p>
    147153        </div>
    148154
     
    161167
    162168</div>
    163 
    164 <script>
    165 jQuery(document).ready( function($) {
    166     $.ajax( 'https://api.wordpress.org/translations/core/1.0/?version=4.1',
    167         { 'type' : 'HEAD' } ).done( function( data, textStatus, jqXHR ) {
    168             var count = jqXHR.getResponseHeader( 'X-Translations-Count' );
    169             if ( count ) {
    170                 $( '#translations-count' ).text( count );
    171             }
    172     });
    173 });
    174 </script>
    175169<?php
    176170
Note: See TracChangeset for help on using the changeset viewer.