mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Twenty Fourteen: proper i18n and translator context for date formatted strings in archive template. Props Frank Klein and mako09, fixes #26367.
Built from https://develop.svn.wordpress.org/trunk@26576 git-svn-id: http://core.svn.wordpress.org/trunk@26467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d64d9058c1
commit
446d929e80
@ -31,10 +31,10 @@ get_header(); ?>
|
||||
printf( __( 'Day: %s', 'twentyfourteen' ), get_the_date() );
|
||||
|
||||
elseif ( is_month() ) :
|
||||
printf( __( 'Month: %s', 'twentyfourteen' ), get_the_date( 'F Y' ) );
|
||||
printf( __( 'Month: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
|
||||
|
||||
elseif ( is_year() ) :
|
||||
printf( __( 'Year: %s', 'twentyfourteen' ), get_the_date( 'Y' ) );
|
||||
printf( __( 'Year: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );
|
||||
|
||||
else :
|
||||
_e( 'Archives', 'twentyfourteen' );
|
||||
|
Loading…
Reference in New Issue
Block a user