WordPress.org

Make WordPress Core

Changeset 9222


Ignore:
Timestamp:
10/17/08 02:35:43 (6 years ago)
Author:
ryan
Message:

i18n fixes for plugin intaller from DD32 and nbachiyski. see #7807

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r9163 r9222  
    333333                <td class="vers"><?php echo $version; ?></td> 
    334334                <td class="vers"> 
    335                     <div class="star-holder" title="<?php printf(__ngettext(__('based on %d rating'), __('based on %d ratings'), $plugin['num_ratings']), $plugin['num_ratings']) ?>"> 
     335                    <div class="star-holder" title="<?php printf(__ngettext('(based on %d rating)', '(based on %d ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>"> 
    336336                        <div class="star star-rating" style="width: <?php echo attribute_escape($plugin['rating']) ?>px"></div> 
    337337                        <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> 
     
    466466        </ul> 
    467467        <h2><?php _e('Average Rating') ?></h2> 
    468         <div class="star-holder" title="<?php printf(__('(based on %d ratings)'), $api->num_ratings) ?>"> 
     468        <div class="star-holder" title="<?php printf(__ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>"> 
    469469            <div class="star star-rating" style="width: <?php echo attribute_escape($api->rating) ?>px"></div> 
    470470            <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div> 
     
    474474            <div class="star star1"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('1 star') ?>" /></div> 
    475475        </div> 
    476         <small><?php printf(__('(based on %d ratings)'), $api->num_ratings) ?></small> 
     476        <small><?php printf(__ngettext('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small> 
    477477    </div> 
    478478    <div id="section-holder" class="wrap"> 
Note: See TracChangeset for help on using the changeset viewer.