Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r45926 r45932  
    120120                                'content' =>
    121121                                        '<p>' . sprintf(
    122                                                 /* translators: %s: URL to General Settings screen */
     122                                                /* translators: %s: URL to General Settings screen. */
    123123                                                __( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%s">General Settings</a> section.' ),
    124124                                                admin_url( 'options-general.php' )
     
    480480                        <?php
    481481                        printf(
    482                                 /* translators: %s: URL to header image configuration in Customizer */
     482                                /* translators: %s: URL to header image configuration in Customizer. */
    483483                                __( 'You can now manage and live-preview Custom Header in the <a href="%s">Customizer</a>.' ),
    484484                                admin_url( 'customize.php?autofocus[control]=header_image' )
     
    493493        <p>
    494494                        <?php
    495                         /* translators: %s: Home URL */
     495                        /* translators: %s: Home URL. */
    496496                        printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) );
    497497                        ?>
     
    552552                        <?php
    553553                        if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
    554                                 /* translators: 1: image width in pixels, 2: image height in pixels */
     554                                /* translators: 1: Image width in pixels, 2: Image height in pixels. */
    555555                                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' ) );
    556556                        } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) {
    557557                                if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) {
    558558                                        printf(
    559                                                 /* translators: %s: size in pixels */
     559                                                /* translators: %s: Size in pixels. */
    560560                                                __( 'Images should be at least %s wide.' ) . ' ',
    561561                                                sprintf(
    562                                                         /* translators: %d: custom header width */
     562                                                        /* translators: %d: Custom header width. */
    563563                                                        '<strong>' . __( '%d pixels' ) . '</strong>',
    564564                                                        get_theme_support( 'custom-header', 'width' )
     
    569569                                if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) {
    570570                                        printf(
    571                                                 /* translators: %s: size in pixels */
     571                                                /* translators: %s: Size in pixels. */
    572572                                                __( 'Images should be at least %s tall.' ) . ' ',
    573573                                                sprintf(
    574                                                         /* translators: %d: custom header height */
     574                                                        /* translators: %d: Custom header height. */
    575575                                                        '<strong>' . __( '%d pixels' ) . '</strong>',
    576576                                                        get_theme_support( 'custom-header', 'height' )
     
    582582                                if ( current_theme_supports( 'custom-header', 'width' ) ) {
    583583                                        printf(
    584                                                 /* translators: %s: size in pixels */
     584                                                /* translators: %s: Size in pixels. */
    585585                                                __( 'Suggested width is %s.' ) . ' ',
    586586                                                sprintf(
    587                                                         /* translators: %d: custom header width */
     587                                                        /* translators: %d: Custom header width. */
    588588                                                        '<strong>' . __( '%d pixels' ) . '</strong>',
    589589                                                        get_theme_support( 'custom-header', 'width' )
     
    593593                                if ( current_theme_supports( 'custom-header', 'height' ) ) {
    594594                                        printf(
    595                                                 /* translators: %s: size in pixels */
     595                                                /* translators: %s: Size in pixels. */
    596596                                                __( 'Suggested height is %s.' ) . ' ',
    597597                                                sprintf(
    598                                                         /* translators: %d: custom header height */
     598                                                        /* translators: %d: Custom header height. */
    599599                                                        '<strong>' . __( '%d pixels' ) . '</strong>',
    600600                                                        get_theme_support( 'custom-header', 'height' )
     
    735735                        echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />';
    736736                        if ( $default_color ) {
    737                                 /* translators: %s: Default text color */
     737                                /* translators: %s: Default text color. */
    738738                                echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>';
    739739                        }
Note: See TracChangeset for help on using the changeset viewer.