Make WordPress Core


Ignore:
Timestamp:
11/21/2016 02:45:53 AM (8 years ago)
Author:
johnbillion
Message:

I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r39139 r39326  
    14621462function get_the_archive_title() {
    14631463    if ( is_category() ) {
     1464        /* translators: Category archive title. 1: Category name */
    14641465        $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
    14651466    } elseif ( is_tag() ) {
     1467        /* translators: Tag archive title. 1: Tag name */
    14661468        $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
    14671469    } elseif ( is_author() ) {
     1470        /* translators: Author archive title. 1: Author name */
    14681471        $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
    14691472    } elseif ( is_year() ) {
     1473        /* translators: Yearly archive title. 1: Year */
    14701474        $title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) );
    14711475    } elseif ( is_month() ) {
     1476        /* translators: Monthly archive title. 1: Month name and year */
    14721477        $title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) );
    14731478    } elseif ( is_day() ) {
     1479        /* translators: Daily archive title. 1: Date */
    14741480        $title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) );
    14751481    } elseif ( is_tax( 'post_format' ) ) {
     
    14941500        }
    14951501    } elseif ( is_post_type_archive() ) {
     1502        /* translators: Post type archive title. 1: Post type name */
    14961503        $title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) );
    14971504    } elseif ( is_tax() ) {
    14981505        $tax = get_taxonomy( get_queried_object()->taxonomy );
    1499         /* translators: 1: Taxonomy singular name, 2: Current taxonomy term */
     1506        /* translators: Taxonomy term archive title. 1: Taxonomy singular name, 2: Current taxonomy term */
    15001507        $title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, single_term_title( '', false ) );
    15011508    } else {
     
    20522059            // any posts today?
    20532060            $date_format = date( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) );
     2061            /* translators: Post calendar label. 1: Date */
    20542062            $label = sprintf( __( 'Posts published on %s' ), $date_format );
    20552063            $calendar_output .= sprintf(
Note: See TracChangeset for help on using the changeset viewer.