Making WordPress.org

Ticket #1507: meta-1507.patch

File meta-1507.patch, 4.8 KB (added by SergeyBiryukov, 9 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php

     
    1414        <li id="comment-<?php comment_ID() ?>" <?php if ($i % 2) echo "class='altc'"; ?>>
    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(),
    2021                comment_date()
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

     
    141141        <h3><a href="<?php echo home_url( '/' ); ?>" title="<?php esc_attr_e( 'Showcase', 'wporg-showcase' ); ?>"><?php _e( 'Showcase', 'wporg-showcase' ); ?></a>
    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' ); ?>
    147150                <?php else : ?>
     
    151154                                <?php _e( '&raquo; Tag', '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
    157163        </h3>
     
    174180        if ( $posttags ) {
    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;
    180190                        }
     
    248258                $parts['title'] = '';
    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        }
    256268
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php

     
    2626<?php if ( $_POST && ! $error ) : ?>
    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 ?>
    3236