Twenty Twenty-One: Capitalize translator comments consistently.

Follow-up to [45932].

See #51800.
Built from https://develop.svn.wordpress.org/trunk@50233


git-svn-id: http://core.svn.wordpress.org/trunk@49894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-02-07 12:28:08 +00:00
parent 1aca7e8b25
commit 48469c6a8f
10 changed files with 22 additions and 22 deletions

View File

@ -36,7 +36,7 @@ $twenty_twenty_one_comment_count = get_comments_number();
<?php else : ?>
<?php
printf(
/* translators: %s: comment count number. */
/* translators: %s: Comment count number. */
esc_html( _nx( '%s comment', '%s comments', $twenty_twenty_one_comment_count, 'Comments title', 'twentytwentyone' ) ),
esc_html( number_format_i18n( $twenty_twenty_one_comment_count ) )
);

View File

@ -42,7 +42,7 @@ while ( have_posts() ) {
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
'after' => '</nav>',
/* translators: %: page number. */
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
)
);
@ -55,7 +55,7 @@ while ( have_posts() ) {
if ( wp_get_post_parent_id( $post ) ) {
echo '<span class="posted-on">';
printf(
/* translators: %s: parent post. */
/* translators: %s: Parent post. */
esc_html__( 'Published in %s', 'twentytwentyone' ),
'<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>'
);

View File

@ -25,7 +25,7 @@ if ( ! function_exists( 'twenty_twenty_one_posted_on' ) ) {
);
echo '<span class="posted-on">';
printf(
/* translators: %s: publish date. */
/* translators: %s: Publish date. */
esc_html__( 'Published %s', 'twentytwentyone' ),
$time_string // phpcs:ignore WordPress.Security.EscapeOutput
);
@ -45,7 +45,7 @@ if ( ! function_exists( 'twenty_twenty_one_posted_by' ) ) {
if ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) {
echo '<span class="byline">';
printf(
/* translators: %s author name. */
/* translators: %s: Author name. */
esc_html__( 'By %s', 'twentytwentyone' ),
'<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a>'
);
@ -100,21 +100,21 @@ if ( ! function_exists( 'twenty_twenty_one_entry_meta_footer' ) ) {
echo '<div class="post-taxonomies">';
/* translators: used between list items, there is a space after the comma. */
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
if ( $categories_list ) {
printf(
/* translators: %s: list of categories. */
/* translators: %s: List of categories. */
'<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
/* translators: used between list items, there is a space after the comma. */
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
if ( $tags_list ) {
printf(
/* translators: %s: list of tags. */
/* translators: %s: List of tags. */
'<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
$tags_list // phpcs:ignore WordPress.Security.EscapeOutput
);
@ -144,21 +144,21 @@ if ( ! function_exists( 'twenty_twenty_one_entry_meta_footer' ) ) {
echo '<div class="post-taxonomies">';
/* translators: used between list items, there is a space after the comma. */
/* translators: Used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
if ( $categories_list ) {
printf(
/* translators: %s: list of categories. */
/* translators: %s: List of categories. */
'<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
$categories_list // phpcs:ignore WordPress.Security.EscapeOutput
);
}
/* translators: used between list items, there is a space after the comma. */
/* translators: Used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
if ( $tags_list ) {
printf(
/* translators: %s: list of tags. */
/* translators: %s: List of tags. */
'<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
$tags_list // phpcs:ignore WordPress.Security.EscapeOutput
);

View File

@ -17,7 +17,7 @@ if ( have_posts() ) {
<h1 class="page-title">
<?php
printf(
/* translators: %s: search term. */
/* translators: %s: Search term. */
esc_html__( 'Results for "%s"', 'twentytwentyone' ),
'<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
);
@ -29,7 +29,7 @@ if ( have_posts() ) {
<?php
printf(
esc_html(
/* translators: %d: the number of search results. */
/* translators: %d: The number of search results. */
_n(
'We found %d result for your search.',
'We found %d results for your search.',

View File

@ -21,7 +21,7 @@ while ( have_posts() ) :
// Parent post navigation.
the_post_navigation(
array(
/* translators: %s: parent post link. */
/* translators: %s: Parent post link. */
'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentytwentyone' ), '%title' ),
)
);

View File

@ -18,7 +18,7 @@
<h1 class="page-title">
<?php
printf(
/* translators: %s: search term. */
/* translators: %s: Search term. */
esc_html__( 'Results for "%s"', 'twentytwentyone' ),
'<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
);
@ -39,7 +39,7 @@
<?php
printf(
'<p>' . wp_kses(
/* translators: 1: link to WP admin new post page. */
/* translators: 1: Link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentytwentyone' ),
array(
'a' => array(

View File

@ -32,7 +32,7 @@
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
'after' => '</nav>',
/* translators: %: page number. */
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
)
);

View File

@ -26,7 +26,7 @@
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
'after' => '</nav>',
/* translators: %: page number. */
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
)
);

View File

@ -32,7 +32,7 @@
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Page', 'twentytwentyone' ) . '">',
'after' => '</nav>',
/* translators: %: page number. */
/* translators: %: Page number. */
'pagelink' => esc_html__( 'Page %', 'twentytwentyone' ),
)
);

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-beta1-50232';
$wp_version = '5.7-beta1-50233';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.