Make WordPress Core


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

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