Make WordPress Core


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (5 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/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
Note: See TracChangeset for help on using the changeset viewer.