WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (3 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.