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:
Lance Willett 2013-12-03 18:45:10 +00:00
parent d64d9058c1
commit 446d929e80

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