Make WordPress Core


Ignore:
Timestamp:
02/07/2021 12:26:41 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Capitalize translator comments consistently.

Follow-up to [45932].

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php

    r49866 r50233  
    2626                echo '<span class="posted-on">';
    2727                printf(
    28                         /* translators: %s: publish date. */
     28                        /* translators: %s: Publish date. */
    2929                        esc_html__( 'Published %s', 'twentytwentyone' ),
    3030                        $time_string // phpcs:ignore WordPress.Security.EscapeOutput
     
    4646                        echo '<span class="byline">';
    4747                        printf(
    48                                 /* translators: %s author name. */
     48                                /* translators: %s: Author name. */
    4949                                esc_html__( 'By %s', 'twentytwentyone' ),
    5050                                '<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a>'
     
    101101                                echo '<div class="post-taxonomies">';
    102102
    103                                 /* translators: used between list items, there is a space after the comma. */
     103                                /* translators: Used between list items, there is a space after the comma. */
    104104                                $categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
    105105                                if ( $categories_list ) {
    106106                                        printf(
    107                                                 /* translators: %s: list of categories. */
     107                                                /* translators: %s: List of categories. */
    108108                                                '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
    109109                                                $categories_list // phpcs:ignore WordPress.Security.EscapeOutput
     
    111111                                }
    112112
    113                                 /* translators: used between list items, there is a space after the comma. */
     113                                /* translators: Used between list items, there is a space after the comma. */
    114114                                $tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
    115115                                if ( $tags_list ) {
    116116                                        printf(
    117                                                 /* translators: %s: list of tags. */
     117                                                /* translators: %s: List of tags. */
    118118                                                '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
    119119                                                $tags_list // phpcs:ignore WordPress.Security.EscapeOutput
     
    145145                                echo '<div class="post-taxonomies">';
    146146
    147                                 /* translators: used between list items, there is a space after the comma. */
     147                                /* translators: Used between list items, there is a space after the comma. */
    148148                                $categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
    149149                                if ( $categories_list ) {
    150150                                        printf(
    151                                                 /* translators: %s: list of categories. */
     151                                                /* translators: %s: List of categories. */
    152152                                                '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
    153153                                                $categories_list // phpcs:ignore WordPress.Security.EscapeOutput
     
    155155                                }
    156156
    157                                 /* translators: used between list items, there is a space after the comma. */
     157                                /* translators: Used between list items, there is a space after the comma. */
    158158                                $tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
    159159                                if ( $tags_list ) {
    160160                                        printf(
    161                                                 /* translators: %s: list of tags. */
     161                                                /* translators: %s: List of tags. */
    162162                                                '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
    163163                                                $tags_list // phpcs:ignore WordPress.Security.EscapeOutput
Note: See TracChangeset for help on using the changeset viewer.