WordPress.org

Make WordPress Core

Ticket #7807: 7807.diff

File 7807.diff, 1.4 KB (added by DD32, 6 years ago)
  • wp-admin/includes/plugin-install.php

     
    436436<?php endif; ?> 
    437437                </ul> 
    438438                <h2><?php _e('Average Rating') ?></h2> 
    439                 <div class="star-holder" title="<?php printf(__('(based on %d ratings)'), $api->num_ratings) ?>"> 
     439                <div class="star-holder" title="<?php printf(__ngettext(__('(based on %d rating)'), __('(based on %d ratings)'), $api->num_ratings), $api->num_ratings) ?>"> 
    440440                        <div class="star star-rating" style="width: <?php echo attribute_escape($api->rating) ?>px"></div> 
    441441                        <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> 
    442442                        <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div> 
     
    444444                        <div class="star star2"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('2 stars') ?>" /></div> 
    445445                        <div class="star star1"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('1 star') ?>" /></div> 
    446446                </div> 
    447                 <small><?php printf(__('(based on %d ratings)'), $api->num_ratings) ?></small> 
     447                <small><?php printf(__ngettext(__('(based on %d rating)'), __('(based on %d ratings)'), $api->num_ratings), $api->num_ratings) ?></small> 
    448448        </div> 
    449449        <div id="section-holder" class="wrap"> 
    450450        <?php