WordPress.org

Make WordPress Core


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

    r45926 r45932  
    7979        return new WP_Error(
    8080            'could_not_remove_theme',
    81             /* translators: %s: Theme name */
     81            /* translators: %s: Theme name. */
    8282            sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet )
    8383        );
     
    201201            if ( ! current_user_can( 'update_themes' ) ) {
    202202                $html = sprintf(
    203                     /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */
     203                    /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */
    204204                    '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>.' ) . '</strong></p>',
    205205                    $theme_name,
     
    207207                    sprintf(
    208208                        'class="thickbox open-plugin-details-modal" aria-label="%s"',
    209                         /* translators: 1: theme name, 2: version number */
     209                        /* translators: 1: Theme name, 2: Version number. */
    210210                        esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
    211211                    ),
     
    214214            } elseif ( empty( $update['package'] ) ) {
    215215                $html = sprintf(
    216                     /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */
     216                    /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */
    217217                    '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>' ) . '</strong></p>',
    218218                    $theme_name,
     
    220220                    sprintf(
    221221                        'class="thickbox open-plugin-details-modal" aria-label="%s"',
    222                         /* translators: 1: theme name, 2: version number */
     222                        /* translators: 1: Theme name, 2: Version number. */
    223223                        esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
    224224                    ),
     
    227227            } else {
    228228                $html = sprintf(
    229                     /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */
     229                    /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */
    230230                    '<p><strong>' . __( 'There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details</a> or <a href="%5$s" %6$s>update now</a>.' ) . '</strong></p>',
    231231                    $theme_name,
     
    233233                    sprintf(
    234234                        'class="thickbox open-plugin-details-modal" aria-label="%s"',
    235                         /* translators: 1: theme name, 2: version number */
     235                        /* translators: 1: Theme name, 2: Version number. */
    236236                        esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) )
    237237                    ),
     
    240240                    sprintf(
    241241                        'aria-label="%s" id="update-theme" data-slug="%s"',
    242                         /* translators: %s: theme name */
     242                        /* translators: %s: Theme name. */
    243243                        esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ),
    244244                        $stylesheet
     
    510510                trigger_error(
    511511                    sprintf(
    512                         /* translators: %s: support forums URL */
     512                        /* translators: %s: Support forums URL. */
    513513                        __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    514514                        __( 'https://wordpress.org/support/forums/' )
     
    524524                'themes_api_failed',
    525525                sprintf(
    526                     /* translators: %s: support forums URL */
     526                    /* translators: %s: Support forums URL. */
    527527                    __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    528528                    __( 'https://wordpress.org/support/forums/' )
     
    539539                    'themes_api_failed',
    540540                    sprintf(
    541                         /* translators: %s: support forums URL */
     541                        /* translators: %s: Support forums URL. */
    542542                        __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
    543543                        __( 'https://wordpress.org/support/forums/' )
     
    724724                    <h2 class="theme-name">{{{ data.name }}}<span class="theme-version">
    725725                        <?php
    726                         /* translators: %s: theme version */
     726                        /* translators: %s: Theme version. */
    727727                        printf( __( 'Version: %s' ), '{{ data.version }}' );
    728728                        ?>
     
    730730                    <h3 class="theme-author">
    731731                        <?php
    732                         /* translators: %s: theme author link */
     732                        /* translators: %s: Theme author link. */
    733733                        printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' );
    734734                        ?>
     
    742742                                printf(
    743743                                    '%1$s <span class="screen-reader-text">%2$s</span>',
    744                                     /* translators: %s: number of ratings */
     744                                    /* translators: %s: Number of ratings. */
    745745                                    sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
    746                                     /* translators: accessibility text */
     746                                    /* translators: Accessibility text. */
    747747                                    __( '(opens in a new tab)' )
    748748                                );
     
    763763                            <?php
    764764                            printf(
    765                                 /* translators: %s: theme name */
     765                                /* translators: %s: Theme name. */
    766766                                __( 'This is a child theme of %s.' ),
    767767                                '<strong>{{{ data.parent }}}</strong>'
Note: See TracChangeset for help on using the changeset viewer.