Changeset 42827 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 03/11/2018 04:43:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r42765 r42827 1491 1491 function get_the_archive_title() { 1492 1492 if ( is_category() ) { 1493 /* translators: Category archive title. 1: Category name */1493 /* translators: Category archive title. %s: Category name */ 1494 1494 $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) ); 1495 1495 } elseif ( is_tag() ) { 1496 /* translators: Tag archive title. 1: Tag name */1496 /* translators: Tag archive title. %s: Tag name */ 1497 1497 $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) ); 1498 1498 } elseif ( is_author() ) { 1499 /* translators: Author archive title. 1: Author name */1499 /* translators: Author archive title. %s: Author name */ 1500 1500 $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' ); 1501 1501 } elseif ( is_year() ) { 1502 /* translators: Yearly archive title. 1: Year */1502 /* translators: Yearly archive title. %s: Year */ 1503 1503 $title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) ); 1504 1504 } elseif ( is_month() ) { 1505 /* translators: Monthly archive title. 1: Month name and year */1505 /* translators: Monthly archive title. %s: Month name and year */ 1506 1506 $title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) ); 1507 1507 } elseif ( is_day() ) { 1508 /* translators: Daily archive title. 1: Date */1508 /* translators: Daily archive title. %s: Date */ 1509 1509 $title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) ); 1510 1510 } elseif ( is_tax( 'post_format' ) ) { … … 1529 1529 } 1530 1530 } elseif ( is_post_type_archive() ) { 1531 /* translators: Post type archive title. 1: Post type name */1531 /* translators: Post type archive title. %s: Post type name */ 1532 1532 $title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) ); 1533 1533 } elseif ( is_tax() ) { … … 2141 2141 // any posts today? 2142 2142 $date_format = date( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) ); 2143 /* translators: Post calendar label. 1: Date */2143 /* translators: Post calendar label. %s: Date */ 2144 2144 $label = sprintf( __( 'Posts published on %s' ), $date_format ); 2145 2145 $calendar_output .= sprintf(
Note: See TracChangeset
for help on using the changeset viewer.