WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/2018 04:43:59 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.

Add missing translator comments in WP_Theme_Install_List_Table and wp_notify_postauthor().
Add missing commas in some translator comments.

Fixes #43523.

File:
1 edited

Legend:

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

    r42765 r42827  
    14911491function get_the_archive_title() {
    14921492    if ( is_category() ) {
    1493         /* translators: Category archive title. 1: Category name */
     1493        /* translators: Category archive title. %s: Category name */
    14941494        $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
    14951495    } elseif ( is_tag() ) {
    1496         /* translators: Tag archive title. 1: Tag name */
     1496        /* translators: Tag archive title. %s: Tag name */
    14971497        $title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
    14981498    } elseif ( is_author() ) {
    1499         /* translators: Author archive title. 1: Author name */
     1499        /* translators: Author archive title. %s: Author name */
    15001500        $title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
    15011501    } elseif ( is_year() ) {
    1502         /* translators: Yearly archive title. 1: Year */
     1502        /* translators: Yearly archive title. %s: Year */
    15031503        $title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) );
    15041504    } elseif ( is_month() ) {
    1505         /* translators: Monthly archive title. 1: Month name and year */
     1505        /* translators: Monthly archive title. %s: Month name and year */
    15061506        $title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) );
    15071507    } elseif ( is_day() ) {
    1508         /* translators: Daily archive title. 1: Date */
     1508        /* translators: Daily archive title. %s: Date */
    15091509        $title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) );
    15101510    } elseif ( is_tax( 'post_format' ) ) {
     
    15291529        }
    15301530    } 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 */
    15321532        $title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) );
    15331533    } elseif ( is_tax() ) {
     
    21412141            // any posts today?
    21422142            $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 */
    21442144            $label            = sprintf( __( 'Posts published on %s' ), $date_format );
    21452145            $calendar_output .= sprintf(
Note: See TracChangeset for help on using the changeset viewer.