WordPress.org

Make WordPress Core

Changeset 50233


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

Twenty Twenty-One: Capitalize translator comments consistently.

Follow-up to [45932].

See #51800.

Location:
trunk/src/wp-content/themes/twentytwentyone
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/comments.php

    r49866 r50233  
    3737                <?php
    3838                printf(
    39                     /* translators: %s: comment count number. */
     39                    /* translators: %s: Comment count number. */
    4040                    esc_html( _nx( '%s comment', '%s comments', $twenty_twenty_one_comment_count, 'Comments title', 'twentytwentyone' ) ),
    4141                    esc_html( number_format_i18n( $twenty_twenty_one_comment_count ) )
  • trunk/src/wp-content/themes/twentytwentyone/image.php

    r49826 r50233  
    4343                    'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
    4444                    'after'    => '</nav>',
    45                     /* translators: %: page number. */
     45                    /* translators: %: Page number. */
    4646                    'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
    4747                )
     
    5656                echo '<span class="posted-on">';
    5757                printf(
    58                     /* translators: %s: parent post. */
     58                    /* translators: %s: Parent post. */
    5959                    esc_html__( 'Published in %s', 'twentytwentyone' ),
    6060                    '<a href="' . esc_url( get_the_permalink( wp_get_post_parent_id( $post ) ) ) . '">' . esc_html( get_the_title( wp_get_post_parent_id( $post ) ) ) . '</a>'
  • 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
  • trunk/src/wp-content/themes/twentytwentyone/search.php

    r49826 r50233  
    1818            <?php
    1919            printf(
    20                 /* translators: %s: search term. */
     20                /* translators: %s: Search term. */
    2121                esc_html__( 'Results for "%s"', 'twentytwentyone' ),
    2222                '<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
     
    3030        printf(
    3131            esc_html(
    32                 /* translators: %d: the number of search results. */
     32                /* translators: %d: The number of search results. */
    3333                _n(
    3434                    'We found %d result for your search.',
  • trunk/src/wp-content/themes/twentytwentyone/single.php

    r49866 r50233  
    2222        the_post_navigation(
    2323            array(
    24                 /* translators: %s: parent post link. */
     24                /* translators: %s: Parent post link. */
    2525                'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentytwentyone' ), '%title' ),
    2626            )
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/content/content-none.php

    r49826 r50233  
    1919                <?php
    2020                printf(
    21                     /* translators: %s: search term. */
     21                    /* translators: %s: Search term. */
    2222                    esc_html__( 'Results for "%s"', 'twentytwentyone' ),
    2323                    '<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
     
    4040            printf(
    4141                '<p>' . wp_kses(
    42                     /* translators: 1: link to WP admin new post page. */
     42                    /* translators: 1: Link to WP admin new post page. */
    4343                    __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentytwentyone' ),
    4444                    array(
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/content/content-page.php

    r49993 r50233  
    3333                'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
    3434                'after'    => '</nav>',
    35                 /* translators: %: page number. */
     35                /* translators: %: Page number. */
    3636                'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
    3737            )
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/content/content-single.php

    r49993 r50233  
    2727                'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
    2828                'after'    => '</nav>',
    29                 /* translators: %: page number. */
     29                /* translators: %: Page number. */
    3030                'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
    3131            )
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/content/content.php

    r49826 r50233  
    3333                'before'   => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
    3434                'after'    => '</nav>',
    35                 /* translators: %: page number. */
     35                /* translators: %: Page number. */
    3636                'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
    3737            )
Note: See TracChangeset for help on using the changeset viewer.