Ticket #3663: gettext-dislikes-formats.diff
| File gettext-dislikes-formats.diff, 872 bytes (added by nbachiyski, 5 years ago) |
|---|
-
wp-admin/index.php
99 99 <h3><?php _e('Blog Stats'); ?></h3> 100 100 <?php 101 101 $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); 102 if (0 < $numposts) $numposts = number_format($numposts);103 102 104 103 $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); 105 if (0 < $numcomms) $numcomms = number_format($numcomms);106 104 107 105 $numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories"); 108 if (0 < $numcats) $numcats = number_format($numcats);109 106 ?> 110 107 <p><?php 111 108 $post_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Posts">post</a>', '%1$s <a href="%2$s" title="Posts">posts</a>', $numposts), $numposts, 'edit.php');
