forked from mirror/_s
Merge pull request #352 from sabreuse/patch-1
_s: Make date formats translatable.
This commit is contained in:
commit
65c01414b3
|
@ -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