Make WordPress Core

Changeset 28082


Ignore:
Timestamp:
04/11/2014 11:24:32 PM (11 years ago)
Author:
nacin
Message:

Translate custom header customize control strings. Remove final added before beta to see what breakage we might cause by refactoring this class.

see #21785. fixes #27738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r27985 r28082  
    709709}
    710710
    711 final class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
     711class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
    712712    public $type = 'header';
    713713
     
    853853            <p class="customizer-section-intro">
    854854                <?php
    855                 // @todo translate (and look to custom-header.php for inspiration)
    856                 echo ( 'Personalize your site with your own header image.' ) . ' ';
    857855                if ( $width && $height ) {
    858                     printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header size of <strong>%d &times; %d</strong> pixels.' ), $width, $height );
     856                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header size of <strong>%s &times; %s</strong> pixels.' ), $width, $height );
    859857                } elseif ( $width ) {
    860                     printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header width of <strong>%d</strong> pixels.' ), $width );
     858                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header width of <strong>%s</strong> pixels.' ), $width );
    861859                } else {
    862                     printf( ( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header height of <strong>%d</strong> pixels.' ), $height );
     860                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new</strong>, your theme recommends a header height of <strong>%s</strong> pixels.' ), $height );
    863861                }
    864862                ?>
Note: See TracChangeset for help on using the changeset viewer.