Making WordPress.org


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

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

Props SergeyBiryukov.
Fixes #1507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.