Make WordPress Core

Ticket #38932: 38932.4.patch

File 38932.4.patch, 2.9 KB (added by stormrockwell, 8 years ago)

added translators comments

  • src/wp-includes/js/media-views.js

     
    40184018
    40194019                if ( this.options.suggestedWidth && this.options.suggestedHeight ) {
    40204020                        this.toolbar.set( 'suggestedDimensions', new View({
    4021                                 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' &times; ' + this.options.suggestedHeight + '</div>' )[0],
     4021                                el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0],
    40224022                                priority: -40
    40234023                        }) );
    40244024                }
  • src/wp-includes/js/media/views/attachments/browser.js

     
    287287
    288288                if ( this.options.suggestedWidth && this.options.suggestedHeight ) {
    289289                        this.toolbar.set( 'suggestedDimensions', new View({
    290                                 el: $( '<div class="instructions">' + l10n.suggestedDimensions + ' ' + this.options.suggestedWidth + ' &times; ' + this.options.suggestedHeight + '</div>' )[0],
     290                                el: $( '<div class="instructions">' + l10n.suggestedDimensions.replace( '%1$s', this.options.suggestedWidth ).replace( '%2$s', this.options.suggestedHeight ) + '</div>' )[0],
    291291                                priority: -40
    292292                        }) );
    293293                }
  • src/wp-includes/media-template.php

     
    235235
    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: a number of pixels wide, 2: a number of pixels tall */
     240                                                        printf( __( 'Suggested image dimensions: %1$s by %2$s pixels' ), "{{data.suggestedWidth}}", "{{data.suggestedHeight}}" );
     241                                                ?>
    239242                                        </p>
    240243                                <# } #>
    241244
  • src/wp-includes/media.php

     
    34833483                'cropImage' => __( 'Crop Image' ),
    34843484                'cropYourImage' => __( 'Crop your image' ),
    34853485                'cropping' => __( 'Cropping&hellip;' ),
    3486                 'suggestedDimensions' => __( 'Suggested image dimensions:' ),
     3486                /* translators: 1: a number of pixels wide, 2: a number of pixels tall */
     3487                'suggestedDimensions' => __( 'Suggested image dimensions: %1$s by %2$s pixels' ),
    34873488                'cropError' => __( 'There has been an error cropping your image.' ),
    34883489
    34893490                // Edit Audio