Ticket #2534: meta-2534.patch
File meta-2534.patch, 6.9 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
80 80 $num_posts = wp_count_posts( $post_type ); 81 81 82 82 if ( $num_posts && $num_posts->publish ) { 83 $text = sprintf( _n( '%s Plugin', '%s Plugins', $num_posts->publish ), number_format_i18n( $num_posts->publish ) );83 $text = sprintf( _n( '%s Plugin', '%s Plugins', $num_posts->publish, 'wporg-plugins' ), number_format_i18n( $num_posts->publish ) ); 84 84 $post_type_object = get_post_type_object( $post_type ); 85 85 86 86 if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) { … … 197 197 set_transient( 'settings_errors', array( array( 198 198 'setting' => 'wporg-plugins', 199 199 'code' => 'plugins-bulk-rejected', 200 'message' => sprintf( _n( ' 1plugin rejected.', '%d plugins rejected.', $rejected, 'wporg-plugins' ), $rejected ),200 'message' => sprintf( _n( '%d plugin rejected.', '%d plugins rejected.', $rejected, 'wporg-plugins' ), $rejected ), 201 201 'type' => 'updated', 202 202 ) ) ); 203 203 } … … 527 527 $response['supplemental'] = array( 528 528 'in_moderation' => $counts->moderated, 529 529 'i18n_comments_text' => sprintf( 530 _n( '%s Comment', '%s Comments', $counts->approved ),530 _n( '%s Comment', '%s Comments', $counts->approved, 'wporg-plugins' ), 531 531 number_format_i18n( $counts->approved ) 532 532 ), 533 533 'i18n_moderation_text' => sprintf( 534 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),534 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments', 'wporg-plugins' ), 535 535 number_format_i18n( $counts->moderated ) 536 536 ) 537 537 ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
361 361 'Mine <span class="count">(%s)</span>', 362 362 $user_post_count, 363 363 'posts', 364 'wporg-p osts'364 'wporg-plugins' 365 365 ), 366 366 number_format_i18n( $user_post_count ) 367 367 ); … … 387 387 'All <span class="count">(%s)</span>', 388 388 $total_posts, 389 389 'posts', 390 'wporg-p osts'390 'wporg-plugins' 391 391 ), 392 392 number_format_i18n( $total_posts ) 393 393 ); … … 441 441 'Sticky <span class="count">(%s)</span>', 442 442 $this->sticky_posts_count, 443 443 'posts', 444 'wporg-p osts'444 'wporg-plugins' 445 445 ), 446 446 number_format_i18n( $this->sticky_posts_count ) 447 447 ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php
96 96 if ( empty( $author_commit ) && empty( $author_plugins ) ) { 97 97 echo 'Not a developer on any plugin.'; 98 98 } else { 99 echo '<strong>' . sprintf( _n( ' 1 plugin:', '%d plugins:', count( $all_plugins )), count( $all_plugins ) ) . '</strong>';99 echo '<strong>' . sprintf( _n( '%d plugin:', '%d plugins:', count( $all_plugins ), 'wporg-plugins' ), count( $all_plugins ) ) . '</strong>'; 100 100 101 101 echo '<ul>'; 102 102 foreach ( $all_plugins as $plugin ) { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
24 24 if ( $count <= 10 ) { 25 25 $text = __( 'Less than 10', 'wporg-plugins' ); 26 26 } elseif ( $count >= 1000000 ) { 27 $million_count = intdiv( $count, 1000000 ); 27 28 /* translators: %d: The integer number of million active installs */ 28 $text = sprintf( _ _( '%d+ million', 'wporg-plugins' ), intdiv( $count, 1000000 ));29 $text = sprintf( _n( '%d+ million', '%d+ million', $million_count, 'wporg-plugins' ), $million_count ); 29 30 } else { 30 31 $text = number_format_i18n( $count ) . '+'; 31 32 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
59 59 <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . $tested_up_to . '</strong>' ); ?></li> 60 60 <?php } ?> 61 61 <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?> 62 <li><?php printf( _n( 'Tag: %s', 'Tags: %s', count( get_the_terms( $post, 'plugin_tags' ) ), 'wporg-plugins' ), $tags ); ?></li> 62 <li><?php 63 $terms = get_the_terms( $post, 'plugin_tags' ); 64 if ( 1 == count( $terms ) ) { 65 printf( __( 'Tag: %s', 'wporg-plugins' ), $tags ); 66 } else { 67 printf( __( 'Tags: %s', 'wporg-plugins' ), $tags ); 68 } 69 ?></li> 63 70 <?php endif; ?> 64 71 </ul> 65 72 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php
52 52 ?> 53 53 <li class="counter-container"> 54 54 <a href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/?filter=' . $stars ); ?>"> 55 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', $stars, 'wporg-plugin ' ), $stars ); ?></span>55 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', $stars, 'wporg-plugins' ), $stars ); ?></span> 56 56 <span class="counter-back"> 57 57 <span class="counter-bar" style="width: <?php echo $rating_bar_width; ?>%;"></span> 58 58 </span>