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/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    }
Note: See TracChangeset for help on using the changeset viewer.