Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments to the default themes.

All default themes now have translator comments for all strings with placeholders!

See #46732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r45485 r45609  
    362362    // Add a page number if necessary.
    363363    if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
     364        /* translators: %s: page number */
    364365        $title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
    365366    }
     
    497498                '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    498499                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     500                /* translators: %s: author display name */
    499501                esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
    500502                get_the_author()
     
    517519    function twentythirteen_entry_date( $echo = true ) {
    518520        if ( has_post_format( array( 'chat', 'status' ) ) ) {
     521            /* translators: 1: post format name, 2: date */
    519522            $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
    520523        } else {
     
    525528            '<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>',
    526529            esc_url( get_permalink() ),
     530            /* translators: %s: post title */
    527531            esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
    528532            esc_attr( get_the_date( 'c' ) ),
Note: See TracChangeset for help on using the changeset viewer.