Making WordPress.org

Changeset 5000


Ignore:
Timestamp:
02/24/2017 04:53:35 PM (6 years ago)
Author:
coffee2code
Message:

Plugin Directory: Display active install counts greater than 1 million as "N+ million".

File:
1 edited

Legend:

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

    r4657 r5000  
    2525            $text = __( 'Less than 10', 'wporg-plugins' );
    2626        } elseif ( $count >= 1000000 ) {
    27             $text = __( '1+ million', 'wporg-plugins' );
     27            /* translators: %d: The integer number of million active installs */
     28            $text = sprintf( __( '%d+ million', 'wporg-plugins' ), intdiv( $count, 1000000 ) );
    2829        } else {
    2930            $text = number_format_i18n( $count ) . '+';
Note: See TracChangeset for help on using the changeset viewer.