Make WordPress Core


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

    r45525 r45609  
    309309    // Add a page number if necessary.
    310310    if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
     311        /* translators: %s: page number */
    311312        $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
    312313    }
     
    503504            '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    504505            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     506            /* translators: %s: author display name */
    505507            esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
    506508            get_the_author()
    507509        );
    508510
    509         // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
    510511        if ( $tag_list ) {
     512            /* translators: 1: category name, 2: tag name, 3: date, 4: author display name */
    511513            $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    512514        } elseif ( $categories_list ) {
     515            /* translators: 1: category name, 3: date, 4: author display name */
    513516            $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    514517        } else {
     518            /* translators: 3: date, 4: author display name */
    515519            $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    516520        }
Note: See TracChangeset for help on using the changeset viewer.