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/twentyten/archive.php

    r44496 r45609  
    3232
    3333            <h1 class="page-title">
    34 <?php if ( is_day() ) : ?>
    35                 <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
    36 <?php elseif ( is_month() ) : ?>
    37                 <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
    38 <?php elseif ( is_year() ) : ?>
    39                 <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
    40 <?php else : ?>
    41                 <?php _e( 'Blog Archives', 'twentyten' ); ?>
    42 <?php endif; ?>
     34            <?php
     35            if ( is_day() ) {
     36                /* translators: %s: date */
     37                printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() );
     38            } elseif ( is_month() ) {
     39                /* translators: %s: date */
     40                printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) );
     41            } elseif ( is_year() ) {
     42                /* translators: %s: date */
     43                printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) );
     44            } else {
     45                _e( 'Blog Archives', 'twentyten' );
     46            }
     47            ?>
    4348            </h1>
    4449
Note: See TracChangeset for help on using the changeset viewer.