Twenty Fourteen: proper i18n and translator context for date formatted strings in archive template. Props Frank Klein and mako09, fixes #26367.

git-svn-id: https://develop.svn.wordpress.org/trunk@26576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-12-03 18:44:39 +00:00
parent 0d918aaf14
commit 49f8312ac2

View File

@ -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' );