I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.
Built from https://develop.svn.wordpress.org/trunk@45932


git-svn-id: http://core.svn.wordpress.org/trunk@45743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2019-09-03 00:41:05 +00:00
parent 216838a0d2
commit e199663322
361 changed files with 2050 additions and 1861 deletions

View File

@@ -22,7 +22,7 @@
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>.', 'twentynineteen' ),
array(
'a' => array(

View File

@@ -37,7 +37,7 @@
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
array(
'span' => array(

View File

@@ -23,7 +23,7 @@
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ),
array(
'span' => array(

View File

@@ -32,7 +32,7 @@
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ),
array(
'span' => array(

View File

@@ -28,7 +28,7 @@ $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentyni
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers. */
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
array(
'span' => array(

View File

@@ -13,7 +13,7 @@ if ( (bool) get_the_author_meta( 'description' ) ) : ?>
<span class="author-heading">
<?php
printf(
/* translators: %s: post author */
/* translators: %s: Post author. */
__( 'Published by %s', 'twentynineteen' ),
esc_html( get_the_author() )
);

View File

@@ -12,7 +12,7 @@ $discussion = twentynineteen_get_discussion_data();
$has_responses = $discussion->responses > 0;
if ( $has_responses ) {
/* translators: %1(X comments)$s */
/* translators: %d: Number of comments. */
$meta_label = sprintf( _n( '%d Comment', '%d Comments', $discussion->responses, 'twentynineteen' ), $discussion->responses );
} else {
$meta_label = __( 'No comments', 'twentynineteen' );