WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments to the default themes.

All default themes now have translator comments for all strings with placeholders!

See #46732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/back-compat.php

    r44149 r45609  
    3737 */
    3838function twentynineteen_upgrade_notice() {
     39    /* translators: %s: WordPress version */
    3940    $message = sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] );
    4041    printf( '<div class="error"><p>%s</p></div>', $message );
     
    5152    wp_die(
    5253        sprintf(
     54            /* translators: %s: WordPress version */
    5355            __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ),
    5456            $GLOBALS['wp_version']
     
    7173function twentynineteen_preview() {
    7274    if ( isset( $_GET['preview'] ) ) {
     75        /* translators: %s: WordPress version */
    7376        wp_die( sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] ) );
    7477    }
Note: See TracChangeset for help on using the changeset viewer.