WordPress.org

Making WordPress.org

Changeset 2379


Ignore:
Timestamp:
01/27/2016 07:11:20 AM (5 years ago)
Author:
coffee2code
Message:

W.org Showcase: Add and fix comments to translators.

Props SergeyBiryukov.
Fixes #1507.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php

    r2376 r2379  
    1515    <?php comment_text() ?>
    1616    <p><cite><?php printf(
    17         _x( '%1$s from %2$s on %3$s', '{comment type} from {comment author link} on {comment date}', 'wporg-showcase' ),
     17        /* translators: 1: comment type, 2: comment author link, 3: comment date */
     18        __( '%1$s from %2$s on %3$s', 'wporg-showcase' ),
    1819        comment_type( __( 'Comment', 'wporg-showcase' ), __( 'Trackback', 'wporg-showcase' ), __( 'Pingback', 'wporg-showcase' ) ),
    1920        comment_author_link(),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r2376 r2379  
    142142
    143143        <?php if ( is_search() ) : ?>
    144             <?php printf( __( '&raquo; Search for: %s', 'wporg-showcase' ), get_search_query() ); ?>
     144            <?php
     145                /* translators: %s: search query */
     146                printf( __( '&raquo; Search for: %s', 'wporg-showcase' ), get_search_query() );
     147            ?>
    145148        <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?>
    146149            <?php _e( '&raquo; Archives', 'wporg-showcase' ); ?>
     
    152155            <?php endif; // is_category ?>
    153156
    154             <?php printf( __( '&raquo; %s', 'wporg-showcase' ), wp_get_document_title() ); ?>
     157            <?php
     158                /* translators: %s: document title */
     159                printf( __( '&raquo; %s', 'wporg-showcase' ), wp_get_document_title() );
     160            ?>
    155161        <?php endif; // is_search ?>
    156162
     
    175181        foreach ( $posttags as $tag ) {
    176182            if ( $tag->count > 1 && !is_tag($tag->slug) ) {
    177                 $tag_link = '<a href="' . get_term_link($tag, 'post_tag') . '" rel="tag">' . sprintf( _x( '%1$s (%2$s)', 'Tag name (tag count)', 'wporg-showcase' ), $tag->name, $tag->count ) . '</a>';
     183                $tag_link = sprintf( '<a href="%s" rel="tag">%s</a>',
     184                    get_term_link( $tag, 'post_tag' ),
     185                    /* translators: 1: tag name, 2: tag count */
     186                    sprintf( __( '%1$s (%2$s)', 'wporg-showcase' ), $tag->name, $tag->count )
     187                );
    178188            } else {
    179189                $tag_link = $tag->name;
     
    249259    } elseif ( is_category() ) {
    250260        // Prepend 'Flavor: ' to category document titles.
     261        /* translators: %s: category name */
    251262        $parts['title'] = sprintf( __( 'Flavor: %s', 'wporg-showcase' ) . $parts['title'] );
    252263    } elseif ( is_tag() ) {
    253264        // Prepend 'Tag: ' to tag document titles.
     265        /* translators: %s: tag name */
    254266        $parts['title'] = sprintf( __( 'Tag: %s', 'wporg-showcase' ) . $parts['title'] );
    255267    }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php

    r2377 r2379  
    2727    <div id="return">
    2828    <h3><?php _e( 'Submitted!', 'wporg-showcase' ); ?></h3>
    29     <p><?php printf( __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ), 'https://wordpress.org/showcase/submit-a-wordpress-site/' ); ?></p>
     29    <p><?php printf(
     30        /* translators: %s: URL of the site submission form */
     31        __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ),
     32        'https://wordpress.org/showcase/submit-a-wordpress-site/'
     33    ); ?></p>
    3034    </div>
    3135<?php endif; // $_POST && ! $error ?>
Note: See TracChangeset for help on using the changeset viewer.