Make WordPress Core

Ticket #35675: 35675.2.patch

File 35675.2.patch, 2.7 KB (added by ramiy, 10 years ago)
  • wp-admin/custom-header.php

     
    526526                printf( __( 'Images of exactly <strong>%1$d &times; %2$d pixels</strong> will be used as-is.' ) . '<br />', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) );
    527527        } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) {
    528528                if ( ! current_theme_supports( 'custom-header', 'flex-width' ) )
    529                         printf( __( 'Images should be at least <strong>%1$d pixels</strong> wide.' ) . ' ', get_theme_support( 'custom-header', 'width' ) );
     529                        printf(
     530                                /* translators: %s: size in pixels */
     531                                __( 'Images should be at least %s wide.' ) . ' ',
     532                                sprintf(
     533                                        /* translators: %d: custom header width */
     534                                        '<strong>' . __( '%d pixels' ) . '</strong>',
     535                                        get_theme_support( 'custom-header', 'width' )
     536                                )
     537                        );
    530538        } elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) {
    531539                if ( ! current_theme_supports( 'custom-header', 'flex-height' ) )
    532                         printf( __( 'Images should be at least <strong>%1$d pixels</strong> tall.' ) . ' ', get_theme_support( 'custom-header', 'height' ) );
     540                        printf(
     541                                /* translators: %s: size in pixels */
     542                                __( 'Images should be at least %s tall.' ) . ' ',
     543                                sprintf(
     544                                        /* translators: %d: custom header height */
     545                                        '<strong>' . __( '%d pixels' ) . '</strong>',
     546                                        get_theme_support( 'custom-header', 'height' )
     547                                )
     548                        );
    533549        }
    534550        if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) {
    535551                if ( current_theme_supports( 'custom-header', 'width' ) )
    536                         printf( __( 'Suggested width is <strong>%1$d pixels</strong>.' ) . ' ', get_theme_support( 'custom-header', 'width' ) );
     552                        printf(
     553                                /* translators: %s: size in pixels */
     554                                __( 'Suggested width is %s.' ) . ' ',
     555                                sprintf(
     556                                        /* translators: %d: custom header width */
     557                                        '<strong>' . __( '%d pixels' ) . '</strong>',
     558                                        get_theme_support( 'custom-header', 'width' )
     559                                )
     560                        );
    537561                if ( current_theme_supports( 'custom-header', 'height' ) )
    538                         printf( __( 'Suggested height is <strong>%1$d pixels</strong>.' ) . ' ', get_theme_support( 'custom-header', 'height' ) );
     562                        printf(
     563                                /* translators: %s: size in pixels */
     564                                __( 'Suggested height is %s.' ) . ' ',
     565                                sprintf(
     566                                        /* translators: %d: custom header height */
     567                                        '<strong>' . __( '%d pixels' ) . '</strong>',
     568                                        get_theme_support( 'custom-header', 'height' )
     569                                )
     570                        );
    539571        }
    540572        ?></p>
    541573        <form enctype="multipart/form-data" id="upload-form" class="wp-upload-form" method="post" action="<?php echo esc_url( add_query_arg( 'step', 2 ) ) ?>">