WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (2 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/image.php

    r44496 r45609  
    2727                <div class="entry-meta">
    2828                    <?php
    29                         $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
    30                         $post_title     = get_the_title( $post->post_parent );
     29                    /* translators: 1: date, 2: date, 3, parent permalink, 4, post title, 5: post title */
     30                    $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Return to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' );
     31                    $post_title     = get_the_title( $post->post_parent );
    3132                    if ( empty( $post_title ) || 0 == $post->post_parent ) {
    3233                        $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>';
Note: See TracChangeset for help on using the changeset viewer.