Changeset 45932 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r45928 r45932 709 709 '2.2.0', 710 710 sprintf( 711 /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */711 /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument. */ 712 712 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ), 713 713 '<code>' . $show . '</code>', … … 774 774 break; 775 775 case 'language': 776 /* translators: Translate this to the correct language tag for your locale, 776 /* 777 * translators: Translate this to the correct language tag for your locale, 777 778 * see https://www.w3.org/International/articles/language-tags/ for reference. 778 779 * Do not translate into your own language. … … 789 790 '2.2.0', 790 791 sprintf( 791 /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */792 /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name. */ 792 793 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ), 793 794 '<code>' . $show . '</code>', … … 1054 1055 // If it's a search, use a dynamic search results title. 1055 1056 } elseif ( is_search() ) { 1056 /* translators: %s: search phrase*/1057 /* translators: %s: Search query. */ 1057 1058 $title['title'] = sprintf( __( 'Search Results for “%s”' ), get_search_query() ); 1058 1059 … … 1098 1099 // Add a page number if necessary. 1099 1100 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { 1100 /* translators: %s: page number*/1101 /* translators: %s: Page number. */ 1101 1102 $title['page'] = sprintf( __( 'Page %s' ), max( $paged, $page ) ); 1102 1103 } … … 1261 1262 // If it's a search 1262 1263 if ( is_search() ) { 1263 /* translators: 1: separator, 2: search phrase*/1264 /* translators: 1: Separator, 2: Search query. */ 1264 1265 $title = sprintf( __( 'Search Results %1$s %2$s' ), $t_sep, strip_tags( $search ) ); 1265 1266 } … … 1559 1560 1560 1561 if ( is_category() ) { 1561 /* translators: Category archive title. %s: Category name */1562 /* translators: Category archive title. %s: Category name. */ 1562 1563 $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) ); 1563 1564 } elseif ( is_tag() ) { 1564 /* translators: Tag archive title. %s: Tag name */1565 /* translators: Tag archive title. %s: Tag name. */ 1565 1566 $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) ); 1566 1567 } elseif ( is_author() ) { 1567 /* translators: Author archive title. %s: Author name */1568 /* translators: Author archive title. %s: Author name. */ 1568 1569 $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' ); 1569 1570 } elseif ( is_year() ) { 1570 /* translators: Yearly archive title. %s: Year */1571 /* translators: Yearly archive title. %s: Year. */ 1571 1572 $title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) ); 1572 1573 } elseif ( is_month() ) { 1573 /* translators: Monthly archive title. %s: Month name and year */1574 /* translators: Monthly archive title. %s: Month name and year. */ 1574 1575 $title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) ); 1575 1576 } elseif ( is_day() ) { 1576 /* translators: Daily archive title. %s: Date */1577 /* translators: Daily archive title. %s: Date. */ 1577 1578 $title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) ); 1578 1579 } elseif ( is_tax( 'post_format' ) ) { … … 1597 1598 } 1598 1599 } elseif ( is_post_type_archive() ) { 1599 /* translators: Post type archive title. %s: Post type name */1600 /* translators: Post type archive title. %s: Post type name. */ 1600 1601 $title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) ); 1601 1602 } elseif ( is_tax() ) { … … 1603 1604 if ( $queried_object ) { 1604 1605 $tax = get_taxonomy( $queried_object->taxonomy ); 1605 /* translators: Taxonomy term archive title. 1: Taxonomy singular name, 2: Current taxonomy term */1606 /* translators: Taxonomy term archive title. 1: Taxonomy singular name, 2: Current taxonomy term. */ 1606 1607 $title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, single_term_title( '', false ) ); 1607 1608 } … … 1895 1896 $url = add_query_arg( 'post_type', $parsed_args['post_type'], $url ); 1896 1897 } 1897 /* translators: 1: month name, 2: 4-digit year*/1898 /* translators: 1: Month name, 2: 4-digit year. */ 1898 1899 $text = sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $result->month ), $result->year ); 1899 1900 if ( $parsed_args['show_post_count'] ) { … … 2138 2139 ); 2139 2140 2140 /* translators: Calendar caption: 1: month name, 2: 4-digit year*/2141 /* translators: Calendar caption: 1: Month name, 2: 4-digit year. */ 2141 2142 $calendar_caption = _x( '%1$s %2$s', 'calendar caption' ); 2142 2143 $calendar_output = '<table id="wp-calendar"> … … 2235 2236 // any posts today? 2236 2237 $date_format = gmdate( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) ); 2237 /* translators: Post calendar label. %s: Date */2238 /* translators: Post calendar label. %s: Date. */ 2238 2239 $label = sprintf( __( 'Posts published on %s' ), $date_format ); 2239 2240 $calendar_output .= sprintf( … … 2819 2820 2820 2821 $defaults = array( 2821 /* translators: Separator between blog name and feed type in feed links */2822 /* translators: Separator between blog name and feed type in feed links. */ 2822 2823 'separator' => _x( '»', 'feed link' ), 2823 /* translators: 1: blog title, 2: separator (raquo)*/2824 /* translators: 1: Blog title, 2: Separator (raquo). */ 2824 2825 'feedtitle' => __( '%1$s %2$s Feed' ), 2825 /* translators: 1: blog title, 2: separator (raquo)*/2826 /* translators: 1: Blog title, 2: Separator (raquo). */ 2826 2827 'comstitle' => __( '%1$s %2$s Comments Feed' ), 2827 2828 ); … … 2861 2862 function feed_links_extra( $args = array() ) { 2862 2863 $defaults = array( 2863 /* translators: Separator between blog name and feed type in feed links */2864 /* translators: Separator between blog name and feed type in feed links. */ 2864 2865 'separator' => _x( '»', 'feed link' ), 2865 /* translators: 1: blog name, 2: separator(raquo), 3: post title*/2866 /* translators: 1: Blog name, 2: Separator (raquo), 3: Post title. */ 2866 2867 'singletitle' => __( '%1$s %2$s %3$s Comments Feed' ), 2867 /* translators: 1: blog name, 2: separator(raquo), 3: category name*/2868 /* translators: 1: Blog name, 2: Separator (raquo), 3: Category name. */ 2868 2869 'cattitle' => __( '%1$s %2$s %3$s Category Feed' ), 2869 /* translators: 1: blog name, 2: separator(raquo), 3: tag name*/2870 /* translators: 1: Blog name, 2: Separator (raquo), 3: Tag name. */ 2870 2871 'tagtitle' => __( '%1$s %2$s %3$s Tag Feed' ), 2871 /* translators: 1: blog name, 2: separator(raquo), 3: term name, 4: taxonomy singular name*/2872 /* translators: 1: Blog name, 2: Separator (raquo), 3: Term name, 4: Taxonomy singular name. */ 2872 2873 'taxtitle' => __( '%1$s %2$s %3$s %4$s Feed' ), 2873 /* translators: 1: blog name, 2: separator(raquo), 3: author name*/2874 /* translators: 1: Blog name, 2: Separator (raquo), 3: Author name. */ 2874 2875 'authortitle' => __( '%1$s %2$s Posts by %3$s Feed' ), 2875 /* translators: 1: blog name, 2: separator(raquo), 3: search phrase*/2876 /* translators: 1: Blog name, 2: Separator (raquo), 3: Search query. */ 2876 2877 'searchtitle' => __( '%1$s %2$s Search Results for “%3$s” Feed' ), 2877 /* translators: 1: blog name, 2: separator(raquo), 3: post type name*/2878 /* translators: 1: Blog name, 2: Separator (raquo), 3: Post type name. */ 2878 2879 'posttypetitle' => __( '%1$s %2$s %3$s Feed' ), 2879 2880 );
Note: See TracChangeset
for help on using the changeset viewer.