Skip to content

Commit cf8928c

Browse files
Twenty Twenty-One: Capitalize translator comments consistently.
Follow-up to [45932]. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@50233 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b301fa3 commit cf8928c

9 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/wp-content/themes/twentytwentyone/comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<?php else : ?>
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 ) )
4242
);

src/wp-content/themes/twentytwentyone/image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
array(
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
)
4848
);
@@ -55,7 +55,7 @@
5555
if ( wp_get_post_parent_id( $post ) ) {
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>'
6161
);

src/wp-content/themes/twentytwentyone/inc/template-tags.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function twenty_twenty_one_posted_on() {
2525
);
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
3131
);
@@ -45,7 +45,7 @@ function twenty_twenty_one_posted_by() {
4545
if ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) {
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>'
5151
);
@@ -100,21 +100,21 @@ function twenty_twenty_one_entry_meta_footer() {
100100

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
110110
);
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
120120
);
@@ -144,21 +144,21 @@ function twenty_twenty_one_entry_meta_footer() {
144144

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
154154
);
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
164164
);

src/wp-content/themes/twentytwentyone/search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<h1 class="page-title">
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>'
2323
);
@@ -29,7 +29,7 @@
2929
<?php
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.',
3535
'We found %d results for your search.',

src/wp-content/themes/twentytwentyone/single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// Parent post navigation.
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
)
2727
);

src/wp-content/themes/twentytwentyone/template-parts/content/content-none.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<h1 class="page-title">
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>'
2424
);
@@ -39,7 +39,7 @@
3939
<?php
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(
4545
'a' => array(

src/wp-content/themes/twentytwentyone/template-parts/content/content-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
array(
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
)
3838
);

src/wp-content/themes/twentytwentyone/template-parts/content/content-single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
array(
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
)
3232
);

src/wp-content/themes/twentytwentyone/template-parts/content/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
array(
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
)
3838
);

0 commit comments

Comments
 (0)