Make WordPress Core

Changeset 35923


Ignore:
Timestamp:
12/14/2015 12:53:37 PM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <strong> tags from translatable strings in WP_Customize_Manager::register_controls() and WP_Customize_Header_Image_Control::render_content().

Add translator comments.

See #35039.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r35899 r35923  
    18561856        $this->add_control( new WP_Customize_Site_Icon_Control( $this, 'site_icon', array(
    18571857            'label'       => __( 'Site Icon' ),
    1858             'description' => __( 'The Site Icon is used as a browser and app icon for your site. Icons must be square, and at least <strong>512</strong> pixels wide and tall.' ),
     1858            'description' => sprintf(
     1859                /* translators: %s: site icon size in pixels */
     1860                __( 'The Site Icon is used as a browser and app icon for your site. Icons must be square, and at least %s pixels wide and tall.' ),
     1861                '<strong>512</strong>'
     1862            ),
    18591863            'section'     => 'title_tagline',
    18601864            'priority'    => 60,
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r35389 r35923  
    177177                <?php
    178178                if ( $width && $height ) {
    179                     printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header size of <strong>%s &times; %s</strong> pixels.' ), $width, $height );
     179                    /* translators: %s: header size in pixels */
     180                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header size of %s pixels.' ),
     181                        sprintf( '<strong>%s &times; %s</strong>', $width, $height )
     182                    );
    180183                } elseif ( $width ) {
    181                     printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header width of <strong>%s</strong> pixels.' ), $width );
     184                    /* translators: %s: header width in pixels */
     185                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header width of %s pixels.' ),
     186                        sprintf( '<strong>%s</strong>', $width )
     187                    );
    182188                } else {
    183                     printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header height of <strong>%s</strong> pixels.' ), $height );
     189                    /* translators: %s: header height in pixels */
     190                    printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header height of %s pixels.' ),
     191                        sprintf( '<strong>%s</strong>', $height )
     192                    );
    184193                }
    185194                ?>
Note: See TracChangeset for help on using the changeset viewer.