forked from mirror/_s
Make date formats translatable
Following up on a similar change to 2014, make the date formats for monthly and yearly archives translatable.
This commit is contained in:
parent
bcc39185cd
commit
3ba177c9ee
|
@ -39,10 +39,10 @@ get_header(); ?>
|
|||
printf( __( 'Day: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
|
||||
|
||||
elseif ( is_month() ) :
|
||||
printf( __( 'Month: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
|
||||
printf( __( 'Month: %s', '_s' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', '_s' ) . '</span>' );
|
||||
|
||||
elseif ( is_year() ) :
|
||||
printf( __( 'Year: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
|
||||
printf( __( 'Year: %s', '_s' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', '_s' ) . '</span>' );
|
||||
|
||||
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
|
||||
_e( 'Asides', '_s' );
|
||||
|
|
Reference in New Issue