Make WordPress Core

Ticket #49295: 49295.diff

File 49295.diff, 15.1 KB (added by audrasjb, 5 weeks ago)

About Page: Introduce translation strings for WP 5.4 RC 1

  • src/wp-admin/about.php

    diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
    index 3cdd964a4c..cc82adea46 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    2929                        <div class="about__header-badge"></div>
    3131                        <div class="about__header-text">
    3233                                <p>
     34                                        <?php _e( 'Say hello to more and better.' ); ?>
     35                                        <br />
     36                                        <?php _e( 'More ways to make your pages come alive. With easier ways to get it all done and looking better than ever—and boosts in speed you can feel.' ); ?>
     37                                        <br />
    3338                                        <?php
    3439                                        printf(
    3540                                                /* translators: %s: The current WordPress version number. */
    36                                                 __( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
     41                                                __( 'Welcome to WordPress %s.' ),
    3742                                                $display_version
    3843                                        );
    3944                                        ?>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    5156                <div class="about__section is-feature">
    5257                        <p>
    53                                 <?php _e( '5.3 expands and refines the block editor introduced in WordPress 5.0 with a new block, more intuitive interactions, and improved accessibility. New features in the editor increase design freedoms, provide additional layout options and style variations to allow designers complete control over the look of a site. This release also introduces the Twenty Twenty theme giving the user more design flexibility and integration with the block editor. Creating beautiful web pages and advanced layouts has never been easier.' ); ?>
     58                                <?php _e( 'Every major release adds more to the block editor.' ); ?>
     59                        </p>
     60                        <p>
     61                                <?php _e( 'More ways to make posts and pages come alive with your best images.' ); ?>
     62                        </p>
     63                        <p>
     64                                <?php _e( 'More ways to bring your visitors in, and keep them engaged, with the richness of embedded media from the web’s top services.' ); ?>
     65                        </p>
     66                        <p>
     67                                <?php _e( 'More ways to make your vision real, and put blocks in the perfect place — even if a particular kind of block is new to you. More efficient processes.' ); ?>
     68                        </p>
     69                        <p>
     70                                <?php _e( 'And more speed everywhere, so as you build sections or galleries, or just type in a line of prose, you can feel how much faster your work flows.' ); ?>
    5471                        </p>
    5572                </div>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    6380                                </div>
    6481                        </div>
    6582                        <div class="column is-vertically-aligned-center">
    66                                 <h2><?php _e( 'Block Editor Improvements' ); ?></h2>
    67                                 <p>
    68                                         <?php _e( 'This enhancement-focused update introduces over 150 new features and usability improvements, including improved large image support for uploading non-optimized, high-resolution pictures taken from your smartphone or other high-quality cameras. Combined with larger default image sizes, pictures always look their best.' ); ?>
    69                                 </p>
    71                                 <p>
    72                                         <?php _e( 'Accessibility improvements include the integration of block editor styles in the admin interface. These improved styles fix many accessibility issues: color contrast on form fields and buttons, consistency between editor and admin interfaces, new snackbar notices, standardizing to the default WordPress color scheme, and the introduction of Motion to make interacting with your blocks feel swift and natural. For people who use a keyboard to navigate the dashboard, the block editor now has a Navigation mode. This lets you jump from block to block without tabbing through every part of the block controls.' ); ?>
    73                                 </p>
     83                                <h2><?php _e( 'Two new blocks. And better blocks overall.' ); ?></h2>
     84                                <ul>
     85                                        <li><?php _e( 'Two brand-new blocks: Social Links and Buttons make adding interactive features fast and easy.' ); ?></li>
     86                                        <li><?php _e( 'New ways with color: Gradients in the Buttons and Cover block, toolbar access to color options in Rich Text blocks, and for the first time, color options in the Group and Columns blocks.' ); ?></li>
     87                                        <li><?php _e( 'Guess a whole lot less! Version 5.4 streamlines the whole process for placing and replacing multimedia in every block. Now it works the same way in almost every block!' ); ?></li>
     88                                        <li><?php _e( 'And if you’ve ever thought your image in the Media+Text block should link to something else — perhaps a picture of a brochure should download that brochure as a document? Well, now it can.' ); ?></li>
     89                                </ul>
    7490                        </div>
    7591                </div>
    7793                <div class="about__section has-2-columns">
    7894                        <div class="column is-vertically-aligned-center">
    79                                 <h2><?php _e( 'Expanded Design Flexibility' ); ?></h2>
    80                                 <p>
    81                                         <?php
    82                                         printf(
    83                                                 /* translators: %s: The current WordPress version number. */
    84                                                 __( 'WordPress %s adds even more robust tools for creating amazing designs.' ),
    85                                                 $display_version
    86                                         );
    87                                         ?>
    88                                 </p>
     95                                <h2><?php _e( 'Cleaner UI, clearer navigation—and easier tabbing!' ); ?></h2>
    8996                                <ul>
    90                                         <li><?php _e( 'The new Group block lets you easily divide your page into colorful sections' ); ?></li>
    91                                         <li><?php _e( 'The Columns block now supports fixed column widths' ); ?></li>
    92                                         <li><?php _e( 'The new Predefined layouts make it a cinch to arrange content into advanced designs' ); ?></li>
    93                                         <li><?php _e( 'Heading blocks now offer controls for text color' ); ?></li>
    94                                         <li><?php _e( 'Additional style options allow you to set your preferred style for any block that supports this feature' ); ?></li>
     97                                        <li><?php _e( 'Clearer block navigation with block breadcrumbs. And easier selection once you get there.' ); ?></li>
     98                                        <li><?php _e( 'For when you need to navigate with the keyboard, better tabbing and focus. Plus, you can tab over to the sidebar of nearly any block.' ); ?></li>
     99                                        <li><?php _e( 'Speed! 14% faster loading of the editor, 51% faster time-to-type!' ); ?></li>
     100                                        <li><?php _e( 'Tips are gone. In their place, a Welcome Guide window you can bring up when you need it—and only when you need it—again and again.' ); ?></li>
     101                                        <li><?php _e( 'Know at a glance whether you’re in a block’s Edit or Navigation mode. Or, if you have restricted vision, your screen reader will tell you which mode you’re in.' ); ?></li>
    95102                                </ul>
     103                                <p><?php _e( 'Of course, if you want to work with the very latest tools and features, install the <a href="https://wordpress.org/plugins/gutenberg/">Gutenberg plugin</a>. You’ll get to be the first to use new and exciting features in the block editor, before anyone else has seen them!' ); ?></p>
    96104                        </div>
    97105                        <div class="column is-edge-to-edge has-accent-background-color">
    98106                                <div class="about__image aligncenter">
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    101109                        </div>
    102110                </div>
    104                 <div class="about__section has-2-columns has-subtle-background-color">
    105                         <div class="column is-vertically-aligned-center">
    106                                 <h2><?php _e( 'Introducing Twenty Twenty' ); ?></h2>
    107                                 <p><?php _e( 'As the block editor celebrates its first birthday, we are proud that Twenty Twenty is designed with flexibility at its core. Show off your services or products with a combination of columns, groups, and media blocks. Set your content to wide or full alignment for dynamic and engaging layouts. Or let your thoughts be the star with a centered content column!' ); ?></p>
    109                                 <p>
    110                                         <?php
    111                                         printf(
    112                                                 /* translators: %s: Link to the Inter font website. */
    113                                                 __( 'As befits a theme called Twenty Twenty, clarity and readability is also a big focus. The theme includes the typeface <a href="%s">Inter</a>, designed by Rasmus Andersson. Inter comes in a Variable Font version, a first for default themes, which keeps load times short by containing all weights and styles of Inter in just two font files.' ),
    114                                                 'https://rsms.me/inter/'
    115                                         );
    116                                         ?>
    117                                 </p>
    118                         </div>
    119                         <div class="column is-edge-to-edge">
    120                                 <div class="about__image aligncenter">
    121                                         <img src="https://s.w.org/images/core/5.3/twentytwenty-mobile.png" alt="" />
    122                                 </div>
    123                         </div>
    124                 </div>
    126                 <div class="about__section has-subtle-background-color">
    127                         <div class="column is-edge-to-edge">
     112                <div class="about__section has-2-columns">
     113                        <div class="column is-edge-to-edge has-accent-background-color">
    128114                                <div class="about__image aligncenter">
    129                                         <img src="https://s.w.org/images/core/5.3/twentytwenty-desktop.png" alt="" />
     115                                        <img src="data:image/svg+xml;charset=utf8,%3Csvg width='660' height='818' viewbox='0 0 660 818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" />
    130116                                </div>
    131117                        </div>
    132                 </div>
    134                 <hr />
    136                 <div class="about__section has-3-columns">
    137                         <h2 class="is-section-header"><?php _e( 'Improvements for Everyone' ); ?></h2>
    139                         <div class="column">
    140                                 <h3><?php _e( 'Automatic Image Rotation' ); ?></h3>
    141                                 <p><?php _e( 'Your images will be correctly rotated upon upload according to the embedded orientation data. This feature was first proposed nine years ago and made possible through the perserverance of many dedicated contributors.' ); ?></p>
    142                         </div>
    143                         <div class="column">
    144                                 <h3><?php _e( 'Site Health Checks' ); ?></h3>
    145                                 <p><?php _e( 'The improvements introduced in 5.3 make it even easier to identify issues. Expanded recommendations highlight areas that may need troubleshooting on your site from the Health Check screen.' ); ?></p>
    146                         </div>
    147                         <div class="column">
    148                                 <h3><?php _e( 'Admin Email Verification' ); ?></h3>
    149                                 <p><?php _e( 'You’ll now be periodically asked to confirm that your admin email address is up to date when you log in as an administrator. This reduces the chance of getting locked out of your site if you change your email address.' ); ?></p>
    150                         </div>
    151                 </div>
    153                 <div class="about__section">
    154                         <div class="column is-edge-to-edge">
    155                                 <div class="about__image aligncenter">
    156                                         <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='498' viewbox='0 0 1000 498' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='865.463' y='36.8596' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='865.463' y='180.98' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='866.2' y='328.05' width='133.8' height='132.694' fill='%23942F44'/%3E%3Crect y='331.736' width='405.455' height='134.169' fill='%234E1521'/%3E%3Crect y='36.8596' width='405.455' height='129.008' fill='%234E1521'/%3E%3Crect y='184.298' width='387.025' height='133.8' fill='%234E1521'/%3E%3Crect x='719.13' y='34.6479' width='133.8' height='428.677' fill='%23BD3854'/%3E%3Crect x='571.323' y='18.4297' width='133.8' height='423.885' fill='%23BD3854'/%3E%3Crect x='423.516' y='35.0164' width='133.8' height='425.728' fill='%23BD3854'/%3E%3C/svg%3E" alt="" />
    157                                 </div>
     118                        <div class="column is-vertically-aligned-center">
     119                                <h2><?php _e( 'Your fundamental right: privacy' ); ?></h2>
     120                                <p><?php _e( '5.4 helps with a variety of privacy issues around the world. So when users and stakeholders ask about regulatory compliance, or how your team handles user data, the answers should be a lot easier to get right.' ); ?></p>
     121                                <p><?php _e( 'Take a look:' ); ?></p>
     122                                <ul>
     123                                        <li><?php _e( 'Personal Data Exports include more useful data about what you’ve done in sessions. Plus, a table of contents!' ); ?></li>
     124                                        <li><?php _e( 'See where you are when you use Privacy Tools Tables, whether you’re erasing or exporting.' ); ?></li>
     125                                        <li><?php _e( 'Plus, little enhancements throughout give the Privacy tools a little cleaner look. Your eyes will thank you!' ); ?></li>
     126                                </ul>
    158127                        </div>
    159128                </div>
    161130                <hr />
    163132                <div class="about__section has-2-columns has-subtle-background-color">
    164                         <h2 class="is-section-header"><?php _e( 'For Developers' ); ?></h2>
     133                        <h2 class="is-section-header"><?php _e( 'Just for developers' ); ?></h2>
    166135                        <div class="column">
    167                                 <h3><?php _e( 'Date/Time Component Fixes' ); ?></h3>
     136                                <h3><?php _e( 'Add custom fields to menu items—natively' ); ?></h3>
     137                                <p>
     138                                        <?php _e( 'Two new actions let you add custom fields to menu items—without a plugin and without writing custom walkers.' ); ?>
     139                                </p>
    168140                                <p>
    169141                                        <?php
    170142                                        printf(
    171                                                 /* translators: %s: Link to the date/time developer notes. */
    172                                                 __( 'Developers can now work with <a href="%s">dates and timezones</a> in a more reliable way. Date and time functionality has received a number of new API functions for unified timezone retrieval and PHP interoperability, as well as many bug fixes.' ),
    173                                                 'https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/'
     143                                                /* translators: %s: PHP Function. */
     144                                                __( 'On the Menus admin screen, %s fires just before the move buttons of a nav menu item in the menu editor.' ),
     145                                                '<code>wp_nav_menu_item_custom_fields</code>'
    174146                                        );
    175147                                        ?>
    176148                                </p>
    177                         </div>
    178                         <div class="column">
    179                                 <h3><?php _e( 'PHP 7.4 Compatibility' ); ?></h3>
    180149                                <p>
    181150                                        <?php
    182151                                        printf(
    183                                                 /* translators: %s: Link to the PHP 7 developer notes. */
    184                                                 __( 'WordPress 5.3 aims to fully support PHP 7.4. This release contains <a href="%s">multiple changes</a> to remove deprecated functionality and ensure compatibility. WordPress continues to encourage all users to run the latest and greatest versions of PHP.' ),
    185                                                 'https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/'
     152                                                /* translators: %s: PHP Function. */
     153                                                __( 'In the Customizer, %s fires at the end of the menu-items form-fields template.' ),
     154                                                '<code>wp_nav_menu_item_custom_fields_customize_template</code>'
    186155                                        );
    187156                                        ?>
    188157                                </p>
     158                                <p>
     159                                        <?php _e( 'Check your code and see where these new actions can replace your custom code, and if you’re concerned about duplication, add a check for the WordPress version.' ); ?>
     160                                </p>
    189161                        </div>
     162                        <div class="column">
     163                                <h3><?php _e( 'Blocks! Simpler styling, new APIs and embeds' ); ?></h3>
     164                                <ul>
     165                                        <li><?php _e( '<strong>Radically</strong> simpler block styling. Negative margins and default padding are gone! Now you can style blocks the way you need them. And, a refactor got rid of four redundant wrapper divs.' ); ?></li>
     166                                        <li><?php _e( 'If you build plugins, now you can register collections of your blocks by namespace across categories—a great way to get more brand visibility.' ); ?></li>
     167                                        <li><?php _e( 'Let users do more with two new APIs: block variations and gradients.' ); ?></li>
     168                                        <li><?php _e( 'In embeds, now the block editor supports TikTok—and CollegeHumor is gone.' ); ?></li>
     169                                </ul>
     170                        </div>
     171                </div>
     173                <div class="about__section is-feature">
     174                        <p>
     175                                <?php
     176                                printf(
     177                                        /* translators: %s: WordPress 5.4 Field Guide link. */
     178                                        __( 'There’s lots more for developers to love in WordPress 5.4. To discover more and learn how to make these changes shine on your on your sites, themes, plugins and more, check the <a href="%s">WordPress 5.4 Field Guide.</a>' ),
     179                                        'https://make.wordpress.org/core/?p=80034'
     180                                );
     181                                ?>
     182                        </p>
     183                        <p>
     184                                <?php _e( 'Finally, a note about tooling. If you’re a Composer fan, version 5.4 supports this more modern tooling for PHPUnit and external libraries.' ); ?>
     185                        </p>
    190186                </div>
    192188                <hr />