Make WordPress Core


Ignore:
Timestamp:
05/05/2017 11:28:41 PM (8 years ago)
Author:
afercia
Message:

Accessibility: Improve the suggested image size text in the media views.

Adds pixels as unit, avoiding abbreviation for a clearer pronunciation by screen
readers. Also, adds the word by instead of the special character times.

Props Presskopp, stormrockwell.
Fixes #38932.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r40358 r40573  
    236236                <# if ( data.suggestedWidth && data.suggestedHeight ) { #>
    237237                    <p class="suggested-dimensions">
    238                         <?php _e( 'Suggested image dimensions:' ); ?> {{data.suggestedWidth}} &times; {{data.suggestedHeight}}
     238                        <?php
     239                            /* translators: 1: suggested width number, 2: suggested height number. */
     240                            printf( __( 'Suggested image dimensions: %1$s by %2$s pixels.' ), '{{data.suggestedWidth}}', '{{data.suggestedHeight}}' );
     241                        ?>
    239242                    </p>
    240243                <# } #>
Note: See TracChangeset for help on using the changeset viewer.