Changeset 40573
- Timestamp:
- 05/05/2017 11:28:41 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r40359 r40573 4051 4051 if ( this.options.suggestedWidth && this.options.suggestedHeight ) { 4052 4052 this.toolbar.set( 'suggestedDimensions', new View({ 4053 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' × ' + this.options.suggestedHeight+ '</div>' )[0],4053 el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0], 4054 4054 priority: -40 4055 4055 }) ); -
trunk/src/wp-includes/js/media/views/attachments/browser.js
r40359 r40573 320 320 if ( this.options.suggestedWidth && this.options.suggestedHeight ) { 321 321 this.toolbar.set( 'suggestedDimensions', new View({ 322 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' × ' + this.options.suggestedHeight+ '</div>' )[0],322 el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0], 323 323 priority: -40 324 324 }) ); -
trunk/src/wp-includes/media-template.php
r40358 r40573 236 236 <# if ( data.suggestedWidth && data.suggestedHeight ) { #> 237 237 <p class="suggested-dimensions"> 238 <?php _e( 'Suggested image dimensions:' ); ?> {{data.suggestedWidth}} × {{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 ?> 239 242 </p> 240 243 <# } #> -
trunk/src/wp-includes/media.php
r40430 r40573 3545 3545 'cropYourImage' => __( 'Crop your image' ), 3546 3546 'cropping' => __( 'Cropping…' ), 3547 'suggestedDimensions' => __( 'Suggested image dimensions:' ), 3547 /* translators: 1: suggested width number, 2: suggested height number. */ 3548 'suggestedDimensions' => __( 'Suggested image dimensions: %1$s by %2$s pixels.' ), 3548 3549 'cropError' => __( 'There has been an error cropping your image.' ), 3549 3550
Note: See TracChangeset
for help on using the changeset viewer.