Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (7 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/twentythirteen/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', 'twentythirteen' ), get_the_date() );
    31                                         elseif ( is_month() ) :
    32                                                 printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
    33                                         elseif ( is_year() ) :
    34                                                 printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
    35                                         else :
    36                                                 _e( 'Archives', 'twentythirteen' );
    37                                         endif;
    38                                         ?>
     32                                } elseif ( is_month() ) {
     33                                        /* translators: %s: date */
     34                                        printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
     35                                } elseif ( is_year() ) {
     36                                        /* translators: %s: date */
     37                                        printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
     38                                } else {
     39                                        _e( 'Archives', 'twentythirteen' );
     40                                }
     41                                ?>
    3942                                </h1>
    4043                        </header><!-- .archive-header -->
Note: See TracChangeset for help on using the changeset viewer.