Making WordPress.org


Ignore:
Timestamp:
02/24/2017 06:30:31 PM (5 years ago)
Author:
coffee2code
Message:

Plugin Directory: i18n cleanup.

Props SergeyBiryukov.
Fixes #2534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php

    r4223 r5001  
    6060            <?php } ?>
    6161            <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?>
    62                 <li><?php printf( _n( 'Tag: %s', 'Tags: %s', count( get_the_terms( $post, 'plugin_tags' ) ), 'wporg-plugins' ), $tags ); ?></li>
     62                <li><?php
     63                    $terms = get_the_terms( $post, 'plugin_tags' );
     64                    if ( 1 == count( $terms ) ) {
     65                        printf( __( 'Tag: %s', 'wporg-plugins' ), $tags );
     66                    } else {
     67                        printf( __( 'Tags: %s', 'wporg-plugins' ), $tags );
     68                    }
     69                ?></li>
    6370            <?php endif; ?>
    6471        </ul>
Note: See TracChangeset for help on using the changeset viewer.