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 1a4a00fce1
commit c7b042d0ad
13 changed files with 28 additions and 26 deletions

View File

@ -27,13 +27,13 @@ get_header(); ?>
<h1 class="archive-title">
<?php
if ( is_day() ) {
/* translators: %s: date */
/* translators: %s: Date. */
printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
} elseif ( is_month() ) {
/* translators: %s: date */
/* translators: %s: Date. */
printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
} elseif ( is_year() ) {
/* translators: %s: date */
/* translators: %s: Date. */
printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
} else {
_e( 'Archives', 'twentytwelve' );

View File

@ -31,7 +31,7 @@ get_header(); ?>
<header class="archive-header">
<h1 class="archive-title">
<?php
/* translators: author display name */
/* translators: Author display name. */
printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
?>
</h1>
@ -68,7 +68,7 @@ get_header(); ?>
<div class="author-description">
<h2>
<?php
/* translators: author display name */
/* translators: Author display name. */
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
?>
</h2>

View File

@ -20,7 +20,7 @@ get_header(); ?>
<header class="archive-header">
<h1 class="archive-title">
<?php
/* translators: %s: category title */
/* translators: %s: Category title. */
printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?>
</h1>

View File

@ -7,7 +7,7 @@
* @since Twenty Twelve 1.0
*/
/* translators: %s: post title */
/* translators: %s: Post title. */
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
?>

View File

@ -7,7 +7,7 @@
* @since Twenty Twelve 1.0
*/
/* translators: %s: post title */
/* translators: %s: Post title. */
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
?>

View File

@ -7,7 +7,7 @@
* @since Twenty Twelve 1.0
*/
/* translators: %s: post title */
/* translators: %s: Post title. */
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
?>

View File

@ -7,7 +7,7 @@
* @since Twenty Twelve 1.0
*/
/* translators: %s: post title */
/* translators: %s: Post title. */
$post_title = sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) );
?>

View File

@ -70,7 +70,7 @@
<div class="author-description">
<h2>
<?php
/* translators: %s: author display name */
/* translators: %s: Author display name. */
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
?>
</h2>
@ -78,7 +78,7 @@
<div class="author-link">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php
/* translators: %s: author display name */
/* translators: %s: Author display name. */
printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() );
?>
</a>

View File

@ -145,13 +145,15 @@ require( get_template_directory() . '/inc/custom-header.php' );
function twentytwelve_get_font_url() {
$font_url = '';
/* translators: If there are characters in your language that are not supported
/*
* translators: If there are characters in your language that are not supported
* by Open Sans, translate this to 'off'. Do not translate into your own language.
*/
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
$subsets = 'latin,latin-ext';
/* translators: To add an additional Open Sans character subset specific to your language,
/*
* translators: To add an additional Open Sans character subset specific to your language,
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
*/
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
@ -308,7 +310,7 @@ function twentytwelve_wp_title( $title, $sep ) {
// Add a page number if necessary.
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
/* translators: %s: page number */
/* translators: %s: Page number. */
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
}
@ -438,7 +440,7 @@ if ( ! function_exists( 'twentytwelve_comment' ) ) :
'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
/* translators: 1: date, 2: time */
/* translators: 1: Date, 2: Time. */
sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
);
?>
@ -486,10 +488,10 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
* @since Twenty Twelve 1.0
*/
function twentytwelve_entry_meta() {
// 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( __( ', ', 'twentytwelve' ) );
// Translators: used between list items, there is a space after the comma.
/* translators: Used between list items, there is a space after the comma. */
$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
$date = sprintf(
@ -503,19 +505,19 @@ if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :
$author = sprintf(
'<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
/* translators: %s: author display name */
/* translators: %s: Author display name. */
esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
get_the_author()
);
if ( $tag_list ) {
/* translators: 1: category name, 2: tag name, 3: date, 4: author display name */
/* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
} elseif ( $categories_list ) {
/* translators: 1: category name, 3: date, 4: author display name */
/* translators: 1: Category name, 3: Date, 4: Author display name. */
$utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
} else {
/* translators: 3: date, 4: author display name */
/* translators: 3: Date, 4: Author display name. */
$utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
}

View File

@ -27,7 +27,7 @@ get_header(); ?>
<?php
$metadata = wp_get_attachment_metadata();
printf(
/* translators: 1: date, 2: date, 3: attachment URL, 4: image width in pixels, 5: image height in pixels, 6: post parent permalink, 7: post parent title, 8: post parent title */
/* translators: 1: Date, 2: Date, 3: Attachment URL, 4: Image width in pixels, 5: Image height in pixels, 6: Post parent permalink, 7: Post parent title, 8: Post parent title. */
__( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),

View File

@ -45,7 +45,7 @@ get_header(); ?>
<div class="entry-content">
<p>
<?php
/* translators: %s: post editor URL */
/* translators: %s: Post editor URL. */
printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) );
?>
</p>

View File

@ -17,7 +17,7 @@ get_header(); ?>
<header class="page-header">
<h1 class="page-title">
<?php
/* translators: %s: search query */
/* translators: %s: Search query. */
printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' );
?>
</h1>

View File

@ -20,7 +20,7 @@ get_header(); ?>
<header class="archive-header">
<h1 class="archive-title">
<?php
/* translators: %s: tag title */
/* translators: %s: Tag title. */
printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' );
?>
</h1>