WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks 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-includes/class-wp-theme.php

    r45926 r45932  
    230230                    'theme_not_found',
    231231                    sprintf(
    232                         /* translators: %s: theme directory name */
     232                        /* translators: %s: Theme directory name. */
    233233                        __( 'The theme directory "%s" does not exist.' ),
    234234                        esc_html( $this->stylesheet )
     
    282282                'theme_child_invalid',
    283283                sprintf(
    284                     /* translators: %s: Template */
     284                    /* translators: %s: Template. */
    285285                    __( 'The theme defines itself as its parent theme. Please check the %s header.' ),
    286286                    '<code>Template</code>'
     
    308308            if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) {
    309309                $error_message = sprintf(
    310                     /* translators: 1: index.php, 2: link to documentation, 3: style.css */
     310                    /* translators: 1: index.php, 2: Documentation URL, 3: style.css */
    311311                    __( 'Template is missing. Standalone themes need to have a %1$s template file. <a href="%2$s">Child themes</a> need to have a Template header in the %3$s stylesheet.' ),
    312312                    '<code>index.php</code>',
     
    345345                    'theme_no_parent',
    346346                    sprintf(
    347                         /* translators: %s: theme directory name */
     347                        /* translators: %s: Theme directory name. */
    348348                        __( 'The parent theme is missing. Please install the "%s" parent theme.' ),
    349349                        esc_html( $this->template )
     
    372372                    'theme_parent_invalid',
    373373                    sprintf(
    374                         /* translators: %s: theme directory name */
     374                        /* translators: %s: Theme directory name. */
    375375                        __( 'The "%s" theme is not a valid parent theme.' ),
    376376                        esc_html( $_child->template )
     
    391391                        'theme_parent_invalid',
    392392                        sprintf(
    393                             /* translators: %s: theme directory name */
     393                            /* translators: %s: Theme directory name. */
    394394                            __( 'The "%s" theme is not a valid parent theme.' ),
    395395                            esc_html( $this->template )
     
    889889                static $comma = null;
    890890                if ( ! isset( $comma ) ) {
    891                     /* translators: used between list items, there is a space after the comma */
     891                    /* translators: Used between list items, there is a space after the comma. */
    892892                    $comma = __( ', ' );
    893893                }
Note: See TracChangeset for help on using the changeset viewer.