Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (4 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/twentytwelve/archive.php

    r44496 r45609  
    2727                <h1 class="archive-title">
    2828                <?php
    29                 if ( is_day() ) :
     29                if ( is_day() ) {
     30                    /* translators: %s: date */
    3031                    printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
    31                     elseif ( is_month() ) :
    32                         printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
    33                     elseif ( is_year() ) :
    34                         printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
    35                     else :
    36                         _e( 'Archives', 'twentytwelve' );
    37                     endif;
    38                     ?>
     32                } elseif ( is_month() ) {
     33                    /* translators: %s: date */
     34                    printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
     35                } elseif ( is_year() ) {
     36                    /* translators: %s: date */
     37                    printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
     38                } else {
     39                    _e( 'Archives', 'twentytwelve' );
     40                }
     41                ?>
    3942                </h1>
    4043            </header><!-- .archive-header -->
Note: See TracChangeset for help on using the changeset viewer.