Making WordPress.org

Changeset 6595


Ignore:
Timestamp:
02/12/2018 05:03:13 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Don't use _n() for a string without a placeholder.

Props tobifjellner.
Fixes #3446.

File:
1 edited

Legend:

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

    r6569 r6595  
    8989                <li>
    9090                    <?php
    91                     echo esc_html( _n( 'Language:', 'Languages:', $available_languages_count, 'wporg-plugins' ) );
     91                    if ( 1 === $available_languages_count ) {
     92                        esc_html_e( 'Language:', 'wporg-plugins' );
     93                    } else {
     94                        esc_html_e( 'Languages:', 'wporg-plugins' );
     95                    }
    9296
    9397                    echo '<div class="languages">';
Note: See TracChangeset for help on using the changeset viewer.