mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@40573 git-svn-id: http://core.svn.wordpress.org/trunk@40443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
471f1e7201
commit
88e515fac0
@ -4050,7 +4050,7 @@ AttachmentsBrowser = View.extend({
|
||||
|
||||
if ( this.options.suggestedWidth && this.options.suggestedHeight ) {
|
||||
this.toolbar.set( 'suggestedDimensions', new View({
|
||||
el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' × ' + this.options.suggestedHeight + '</div>' )[0],
|
||||
el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0],
|
||||
priority: -40
|
||||
}) );
|
||||
}
|
||||
|
4
wp-includes/js/media-views.min.js
vendored
4
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@ -235,7 +235,10 @@ function wp_print_media_templates() {
|
||||
|
||||
<# if ( data.suggestedWidth && data.suggestedHeight ) { #>
|
||||
<p class="suggested-dimensions">
|
||||
<?php _e( 'Suggested image dimensions:' ); ?> {{data.suggestedWidth}} × {{data.suggestedHeight}}
|
||||
<?php
|
||||
/* translators: 1: suggested width number, 2: suggested height number. */
|
||||
printf( __( 'Suggested image dimensions: %1$s by %2$s pixels.' ), '{{data.suggestedWidth}}', '{{data.suggestedHeight}}' );
|
||||
?>
|
||||
</p>
|
||||
<# } #>
|
||||
|
||||
|
@ -3544,7 +3544,8 @@ function wp_enqueue_media( $args = array() ) {
|
||||
'cropImage' => __( 'Crop Image' ),
|
||||
'cropYourImage' => __( 'Crop your image' ),
|
||||
'cropping' => __( 'Cropping…' ),
|
||||
'suggestedDimensions' => __( 'Suggested image dimensions:' ),
|
||||
/* translators: 1: suggested width number, 2: suggested height number. */
|
||||
'suggestedDimensions' => __( 'Suggested image dimensions: %1$s by %2$s pixels.' ),
|
||||
'cropError' => __( 'There has been an error cropping your image.' ),
|
||||
|
||||
// Edit Audio
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-40572';
|
||||
$wp_version = '4.8-alpha-40573';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user