Make WordPress Core

Changeset 45604


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (7 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments.

Twentys Eleven, Sixteen, and Seventeen now have translator comments for all their strings.

Also, WPCS now doesn't show missing translator comment warnings for test files.

See #47632.

Location:
trunk
Files:
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r45601 r45604  
    149149        </rule>
    150150
     151        <!-- Translator comments aren't needed in unit tests. -->
     152        <rule ref="WordPress.WP.I18n.MissingTranslatorsComment">
     153                <exclude-pattern>/tests/*</exclude-pattern>
     154        </rule>
     155
    151156        <rule ref="Generic.Functions.FunctionCallArgumentSpacing">
    152157                <exclude-pattern>/wp-config\.php</exclude-pattern>
  • trunk/src/wp-content/themes/twentyeleven/archive.php

    r44496 r45604  
    2222                                <header class="page-header">
    2323                                        <h1 class="page-title">
    24                                                 <?php if ( is_day() ) : ?>
    25                                                         <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
    26                                                 <?php elseif ( is_month() ) : ?>
    27                                                         <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
    28                                                 <?php elseif ( is_year() ) : ?>
    29                                                         <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
    30                                                 <?php else : ?>
    31                                                         <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
    32                                                 <?php endif; ?>
     24                                                <?php
     25                                                if ( is_day() ) {
     26                                                        /* translators: %s: date */
     27                                                        printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' );
     28                                                } elseif ( is_month() ) {
     29                                                        /* translators: %s: date */
     30                                                        printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' );
     31                                                } elseif ( is_year() ) {
     32                                                        /* translators: %s: date */
     33                                                        printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' );
     34                                                } else {
     35                                                        _e( 'Blog Archives', 'twentyeleven' );
     36                                                }
     37                                                ?>
    3338                                        </h1>
    3439                                </header>
  • trunk/src/wp-content/themes/twentyeleven/author.php

    r43571 r45604  
    2727
    2828                                <header class="page-header">
    29                                         <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<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>
     29                                        <h1 class="page-title author">
     30                                        <?php
     31                                        /* translators: %s: author display name */
     32                                        printf( __( 'Author Archives: %s', 'twentyeleven' ), '<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>' );
     33                                        ?>
     34                                        </h1>
    3035                                </header>
    3136
    … …  
    5964                                        </div><!-- #author-avatar -->
    6065                                        <div id="author-description">
    61                                                 <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
     66                                                <h2>
     67                                                <?php
     68                                                        /* translators: author display name */
     69                                                        printf( __( 'About %s', 'twentyeleven' ), get_the_author() );
     70                                                ?>
     71                                                </h2>
    6272                                                <?php the_author_meta( 'description' ); ?>
    6373                                        </div><!-- #author-description  -->
  • trunk/src/wp-content/themes/twentyeleven/category.php

    r43571 r45604  
    1818                                        <h1 class="page-title">
    1919                                        <?php
     20                                                /* translators: %s: category title */
    2021                                                printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    2122                                        ?>
  • trunk/src/wp-content/themes/twentyeleven/content-featured.php

    r43571 r45604  
    3636                        $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    3737                if ( '' != $tag_list ) {
     38                        /* translators: 1: category list, 2: tag list, 3: post permalink, 4: post title */
    3839                        $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    3940                } else {
     41                        /* translators: 1: category list, 3: post permalink, 4: post title */
    4042                        $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4143                }
  • trunk/src/wp-content/themes/twentyeleven/content-gallery.php

    r44574 r45604  
    4747                                        <?php
    4848                                        printf(
     49                                                /* translators: 1: link attributes, 2: number of photos */
    4950                                                _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
     51                                                /* translators: %s: Post title */
    5052                                                'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    5153                                                number_format_i18n( $total_images )
    … …  
    7678                <span class="cat-links">
    7779                        <?php
     80                        /* translators: 1: CSS classes, 2: list of categories */
    7881                        printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    7982                        $show_sep = true;
    … …  
    9194                <span class="tag-links">
    9295                        <?php
     96                        /* translators: 1: CSS classes, 2: list of tags */
    9397                        printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
    9498                        $show_sep = true;
  • trunk/src/wp-content/themes/twentyeleven/content-image.php

    r43571 r45604  
    4242                                <?php
    4343                                        printf(
     44                                                /* translators: 1: the permalink, 2: date and time, 3: date and time, 4: author link, 5: author link title, 6: author display name */
    4445                                                __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
    4546                                                esc_url( get_permalink() ),
    … …  
    4748                                                get_the_date(),
    4849                                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     50                                                /* translators: %s: author display name */
    4951                                                esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    5052                                                get_the_author()
    … …  
    5961                                        ?>
    6062                                <span class="cat-links">
    61                                         <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
     63                                        <?php
     64                                        /* translators: 1: CSS classes, 2: category list */
     65                                        printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
     66                                        ?>
    6267                                </span>
    6368                                <?php endif; // End if categories ?>
    … …  
    6873                                        ?>
    6974                                <span class="tag-links">
    70                                         <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     75                                        <?php
     76                                        /* translators: 1: CSS classes, 2: tag list */
     77                                        printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
     78                                        ?>
    7179                                </span>
    7280                                <?php endif; // End if $tags_list ?>
  • trunk/src/wp-content/themes/twentyeleven/content-quote.php

    r43571 r45604  
    5454                        <span class="cat-links">
    5555                                <?php
     56                                /* translators: 1: CSS classes, 2: list of categories */
    5657                                printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    5758                                $show_sep = true;
    … …  
    6970                        <span class="tag-links">
    7071                                <?php
     72                                /* translators: 1: CSS classes, 2: list of tags */
    7173                                printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
    7274                                $show_sep = true;
  • trunk/src/wp-content/themes/twentyeleven/content-single.php

    r43571 r45604  
    4040                        $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    4141                if ( '' != $tag_list ) {
     42                        /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4243                        $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4344                } elseif ( '' != $categories_list ) {
     45                        /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4446                        $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4547                } else {
     48                        /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4649                        $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4750                }
    … …  
    6871                        </div><!-- #author-avatar -->
    6972                        <div id="author-description">
    70                                 <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
     73                                <h2>
     74                                <?php
     75                                /* translators: %s: author name */
     76                                printf( __( 'About %s', 'twentyeleven' ), get_the_author() );
     77                                ?>
     78                                </h2>
    7179                                <?php the_author_meta( 'description' ); ?>
    7280                                <div id="author-link">
    7381                                        <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    74                                                 <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
     82                                                <?php
     83                                                /* translators: %s: author name */
     84                                                printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() );
     85                                                ?>
    7586                                        </a>
    7687                                </div><!-- #author-link -->
  • trunk/src/wp-content/themes/twentyeleven/content.php

    r43571 r45604  
    6161                        <span class="cat-links">
    6262                                        <?php
     63                                        /* translators: 1: CSS classes, 2: category list */
    6364                                        printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    6465                                        $show_sep = true;
    … …  
    7879                        <span class="tag-links">
    7980                                        <?php
     81                                        /* translators: 1: CSS classes, 2: tag list */
    8082                                        printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
    8183                                        $show_sep = true;
  • trunk/src/wp-content/themes/twentyeleven/footer.php

    r43051 r45604  
    3333                                ?>
    3434                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>">
    35                                         <?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?>
     35                                        <?php
     36                                        /* translators: %s: WordPress */
     37                                        printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' );
     38                                        ?>
    3639                                </a>
    3740                        </div>
  • trunk/src/wp-content/themes/twentyeleven/functions.php

    r45602 r45604  
    727727                                                echo get_avatar( $comment, $avatar_size );
    728728
    729                                                 /* translators: 1: comment author, 2: date and time */
    730729                                                printf(
     730                                                        /* translators: 1: comment author, 2: date and time */
    731731                                                        __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
    732732                                                        sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
    … …  
    785785        function twentyeleven_posted_on() {
    786786                printf(
     787                        /* translators: 1: The permalink, 2: time, 3: date and time, 4: date and time, 5: Author posts, 6: Author post link text, 7: Author display name  */
    787788                        __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
    788789                        esc_url( get_permalink() ),
    … …  
    791792                        esc_html( get_the_date() ),
    792793                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     794                        /* translators: %s: Author display name */
    793795                        esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    794796                        get_the_author()
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r45581 r45604  
    4343        // Add a page number if necessary:
    4444if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
     45        /* translators: %s: page number */
    4546        echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
    4647}
  • trunk/src/wp-content/themes/twentyeleven/image.php

    r43571 r45604  
    3232                                                                        $metadata = wp_get_attachment_metadata();
    3333                                                                        printf(
     34                                                                                /* translators: 1: time, 2: date, 3: image permalink, 4: image width, 5: image height, 6: parent permalink, 7: parent post title, 8: parent post title */
    3435                                                                                __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></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>', 'twentyeleven' ),
    3536                                                                                esc_attr( get_the_time() ),
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r45581 r45604  
    303303        <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div>
    304304        <br />
    305         <span><?php printf( __( 'Default color: %s', 'twentyeleven' ), '<span id="default-color">' . twentyeleven_get_default_link_color( $options['color_scheme'] ) . '</span>' ); ?></span>
     305        <span>
     306        <?php
     307        /* translators: link color */
     308        printf( __( 'Default color: %s', 'twentyeleven' ), '<span id="default-color">' . twentyeleven_get_default_link_color( $options['color_scheme'] ) . '</span>' );
     309        ?>
     310        </span>
    306311        <?php
    307312}
    … …  
    339344                <?php screen_icon(); ?>
    340345                <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?>
    341                 <h2><?php printf( __( '%s Theme Options', 'twentyeleven' ), $theme_name ); ?></h2>
     346                <h2>
     347                <?php
     348                /* translators: theme name */
     349                printf( __( '%s Theme Options', 'twentyeleven' ), $theme_name );
     350                ?>
     351                </h2>
    342352                <?php settings_errors(); ?>
    343353
  • trunk/src/wp-content/themes/twentyeleven/search.php

    r43571 r45604  
    1616
    1717                                <header class="page-header">
    18                                         <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
     18                                        <h1 class="page-title">
     19                                        <?php
     20                                        /* translators: %s: search query */
     21                                        printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' );
     22                                        ?>
     23                                        </h1>
    1924                                </header>
    2025
  • trunk/src/wp-content/themes/twentyeleven/showcase.php

    r43571 r45604  
    125125                                                                        $thumbnail_size = 'small-feature';
    126126                                                                }
     127
     128                                                                /* translators: %s: post title */
     129                                                                $title = sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) );
    127130                                                                ?>
    128                                                 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>
     131                                                <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( $title ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>
    129132                                                                <?php
    130133                                                        }
    … …  
    157160                                                                        $class = '';
    158161                                                                }
     162
     163                                                                /* translators: %s: post title */
     164                                                                $title = sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) );
    159165                                                                ?>
    160                                         <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li>
     166                                        <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( $title ); ?>"<?php echo $class; ?>></a></li>
    161167                                                <?php endwhile; ?>
    162168                                        </ul>
  • trunk/src/wp-content/themes/twentyeleven/tag.php

    r43571 r45604  
    1818                                        <h1 class="page-title">
    1919                                        <?php
     20                                                /* translators: %s: tag title */
    2021                                                printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
    2122                                        ?>
  • trunk/src/wp-content/themes/twentyseventeen/inc/back-compat.php

    r43571 r45604  
    3737 */
    3838function twentyseventeen_upgrade_notice() {
     39        /* translators: %s: The current WordPress version */
    3940        $message = sprintf( __( 'Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentyseventeen' ), $GLOBALS['wp_version'] );
    4041        printf( '<div class="error"><p>%s</p></div>', $message );
    … …  
    5051function twentyseventeen_customize() {
    5152        wp_die(
     53                /* translators: %s: The current WordPress version */
    5254                sprintf( __( 'Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentyseventeen' ), $GLOBALS['wp_version'] ),
    5355                '',
    … …  
    6870function twentyseventeen_preview() {
    6971        if ( isset( $_GET['preview'] ) ) {
     72                /* translators: %s: The current WordPress version */
    7073                wp_die( sprintf( __( 'Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentyseventeen' ), $GLOBALS['wp_version'] ) );
    7174        }
  • trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php

    r45256 r45604  
    149149        } elseif ( is_customize_preview() ) {
    150150                // The output placeholder anchor.
    151                 echo '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel' . $id . '" id="panel' . $id . '"><span class="twentyseventeen-panel-title">' . sprintf( __( 'Front Page Section %1$s Placeholder', 'twentyseventeen' ), $id ) . '</span></article>';
     151                /* translators: %s: The section id */
     152                echo '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel' . $id . '" id="panel' . $id . '"><span class="twentyseventeen-panel-title">' . sprintf( __( 'Front Page Section %s Placeholder', 'twentyseventeen' ), $id ) . '</span></article>';
    152153        }
    153154}
  • trunk/src/wp-content/themes/twentyseventeen/search.php

    r43571 r45604  
    1717        <header class="page-header">
    1818                <?php if ( have_posts() ) : ?>
    19                         <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyseventeen' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
     19                        <h1 class="page-title">
     20                        <?php
     21                        /* translators: search query */
     22                        printf( __( 'Search Results for: %s', 'twentyseventeen' ), '<span>' . get_search_query() . '</span>' );
     23                        ?>
     24                        </h1>
    2025                <?php else : ?>
    2126                        <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyseventeen' ); ?></h1>
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php

    r43051 r45604  
    1717        ?>
    1818        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>" class="imprint">
    19                 <?php printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); ?>
     19                <?php
     20                        /* translators: %s: WordPress */
     21                printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' );
     22                ?>
    2023        </a>
    2124</div><!-- .site-info -->
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php

    r45209 r45604  
    4040                        <div class="entry-content">
    4141                                <?php
    42                                         /* translators: %s: Name of current post */
    4342                                        the_content(
    4443                                                sprintf(
     44                                                        /* translators: %s: Name of current post */
    4545                                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    4646                                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php

    r45209 r45604  
    3737                        <div class="entry-content">
    3838                                <?php
    39                                         /* translators: %s: Name of current post */
    4039                                        the_content(
    4140                                                sprintf(
     41                                                        /* translators: %s: Name of current post */
    4242                                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    4343                                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php

    r45209 r45604  
    7979                if ( is_single() || empty( $audio ) ) {
    8080
    81                         /* translators: %s: Name of current post */
    8281                        the_content(
    8382                                sprintf(
     83                                        /* translators: %s: Name of current post */
    8484                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    8585                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-gallery.php

    r45209 r45604  
    6666                if ( is_single() || ! get_post_gallery() ) {
    6767
    68                         /* translators: %s: Name of current post */
    6968                        the_content(
    7069                                sprintf(
     70                                        /* translators: %s: Name of current post */
    7171                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    7272                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php

    r45209 r45604  
    5656
    5757                        // Only show content if is a single post, or if there's no featured image.
    58                         /* translators: %s: Name of current post */
    5958                        the_content(
    6059                                sprintf(
     60                                        /* translators: %s: Name of current post */
    6161                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    6262                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-none.php

    r44574 r45604  
    2222                        ?>
    2323
    24                         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyseventeen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
     24                        <p>
     25                        <?php
     26                        /* translators: %s: Link to post-new.php */
     27                        printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentyseventeen' ), esc_url( admin_url( 'post-new.php' ) ) );
     28                        ?>
     29                        </p>
    2530
    2631                <?php else : ?>
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php

    r45209 r45604  
    7878                if ( is_single() || empty( $video ) ) {
    7979
    80                         /* translators: %s: Name of current post */
    8180                        the_content(
    8281                                sprintf(
     82                                        /* translators: %s: Name of current post */
    8383                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    8484                                        get_the_title()
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content.php

    r45209 r45604  
    5252        <div class="entry-content">
    5353                <?php
    54                 /* translators: %s: Name of current post */
    5554                the_content(
    5655                        sprintf(
     56                                /* translators: %s: Name of current post */
    5757                                __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    5858                                get_the_title()
  • trunk/src/wp-content/themes/twentysixteen/footer.php

    r43051 r45604  
    5959                                ?>
    6060                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>" class="imprint">
    61                                         <?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?>
     61                                        <?php
     62                                        /* translators: %s: WordPress */
     63                                        printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' );
     64                                        ?>
    6265                                </a>
    6366                        </div><!-- .site-info -->
  • trunk/src/wp-content/themes/twentysixteen/inc/back-compat.php

    r43571 r45604  
    3939 */
    4040function twentysixteen_upgrade_notice() {
     41        /* translators: %s: The current WordPress version */
    4142        $message = sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] );
    4243        printf( '<div class="error"><p>%s</p></div>', $message );
    … …  
    5253function twentysixteen_customize() {
    5354        wp_die(
     55                /* translators: %s: The current WordPress version */
    5456                sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ),
    5557                '',
    … …  
    7072function twentysixteen_preview() {
    7173        if ( isset( $_GET['preview'] ) ) {
     74                /* translators: %s: The current WordPress version */
    7275                wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) );
    7376        }
  • trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php

    r45581 r45604  
    5050                if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    5151                        echo '<span class="comments-link">';
     52                        /* translators: %s: Name of current post */
    5253                        comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) );
    5354                        echo '</span>';
  • trunk/src/wp-content/themes/twentysixteen/search.php

    r42343 r45604  
    1616
    1717                        <header class="page-header">
    18                                 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' ); ?></h1>
     18                                <h1 class="page-title">
     19                                <?php
     20                                /* translators: %s: The search query */
     21                                printf( __( 'Search Results for: %s', 'twentysixteen' ), '<span>' . esc_html( get_search_query() ) . '</span>' );
     22                                ?>
     23                                </h1>
    1924                        </header><!-- .page-header -->
    2025
  • trunk/src/wp-content/themes/twentysixteen/template-parts/biography.php

    r40851 r45604  
    3131                        <?php the_author_meta( 'description' ); ?>
    3232                        <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    33                                 <?php printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() ); ?>
     33                                <?php
     34                                /* translators: %s: The post author display name */
     35                                printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() );
     36                                ?>
    3437                        </a>
    3538                </p><!-- .author-bio -->
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content-none.php

    r40851 r45604  
    1717                <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    1818
    19                         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
     19                        <p>
     20                        <?php
     21                        /* translators: %s: Link to post-new.php */
     22                        printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) );
     23                        ?>
     24                        </p>
    2025
    2126                <?php elseif ( is_search() ) : ?>
  • trunk/src/wp-content/themes/twentysixteen/template-parts/content.php

    r45209 r45604  
    2424        <div class="entry-content">
    2525                <?php
    26                         /* translators: %s: Name of current post */
    2726                        the_content(
    2827                                sprintf(
     28                                        /* translators: %s: Name of current post */
    2929                                        __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    3030                                        get_the_title()
Note: See TracChangeset for help on using the changeset viewer.