Make WordPress Core


Ignore:
Timestamp:
02/07/2021 12:42:06 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Adjust some newly introduced strings to remove unnecessary numbered placeholders for consistency.

Follow-up to [42827].

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/post/author-bio.php

    r49826 r50234  
    1313        <?php echo get_avatar( get_the_author_meta( 'ID' ), '85' ); ?>
    1414        <div class="author-bio-content">
    15             <h2 class="author-title"><?php printf( /* translators: 1: Author name. */ esc_html__( 'By %s', 'twentytwentyone' ), get_the_author() ); ?></h2>
     15            <h2 class="author-title">
     16            <?php
     17            printf(
     18                /* translators: %s: Author name. */
     19                esc_html__( 'By %s', 'twentytwentyone' ),
     20                get_the_author()
     21            );
     22            ?>
     23            </h2>
    1624            <p class="author-description"> <?php the_author_meta( 'description' ); ?></p><!-- .author-description -->
    1725            <?php
    1826            printf(
    19                 /* translators: 1: Link to authors posts. 2: Author name. */
    20                 '<a class="author-link" href="%1$s" rel="author">' . esc_html__( 'View all of %2$s\'s posts.', 'twentytwentyone' ) . '</a>',
     27                '<a class="author-link" href="%1$s" rel="author">%2$s</a>',
    2128                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    22                 get_the_author()
     29                sprintf(
     30                    /* translators: %s: Author name. */
     31                    esc_html__( 'View all of %s\'s posts.', 'twentytwentyone' ),
     32                    get_the_author()
     33                )
    2334            );
    2435            ?>
Note: See TracChangeset for help on using the changeset viewer.