Changeset 45926 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r45583 r45926 262 262 function install_dashboard() { 263 263 ?> 264 <p><?php printf( __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%1$s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.' ), __( 'https://wordpress.org/plugins/' ) ); ?></p> 264 <p> 265 <?php 266 printf( 267 /* translators: %s: https://wordpress.org/plugins/ */ 268 __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.' ), 269 __( 'https://wordpress.org/plugins/' ) 270 ); 271 ?> 272 </p> 265 273 266 274 <?php display_plugins_table(); ?> … … 293 301 $tags, 294 302 array( 303 /* translators: %s: number of plugins */ 295 304 'single_text' => __( '%s plugin' ), 305 /* translators: %s: number of plugins */ 296 306 'multiple_text' => __( '%s plugins' ), 297 307 ) … … 391 401 case 'install_plugins_beta': 392 402 printf( 403 /* translators: %s: URL to "Features as Plugins" page */ 393 404 '<p>' . __( 'You are using a development version of WordPress. These feature plugins are also under development. <a href="%s">Learn more</a>.' ) . '</p>', 394 405 'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/' … … 640 651 <li><strong><?php _e( 'Last Updated:' ); ?></strong> 641 652 <?php 642 /* translators: %s: Time since the last update */653 /* translators: %s: Human-readable time difference */ 643 654 printf( __( '%s ago' ), human_time_diff( strtotime( $api->last_updated ) ) ); 644 655 ?> … … 668 679 $active_installs_millions = floor( $api->active_installs / 1000000 ); 669 680 printf( 681 /* translators: %s: number of millions */ 670 682 _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), 671 683 number_format_i18n( $active_installs_millions ) … … 697 709 ); 698 710 ?> 699 <p aria-hidden="true" class="fyi-description"><?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ), number_format_i18n( $api->num_ratings ) ); ?></p> 711 <p aria-hidden="true" class="fyi-description"> 712 <?php 713 printf( 714 /* translators: %s: number of ratings */ 715 _n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ), 716 number_format_i18n( $api->num_ratings ) 717 ); 718 ?> 719 </p> 700 720 <?php 701 721 } … … 708 728 foreach ( $api->ratings as $key => $ratecount ) { 709 729 // Avoid div-by-zero. 710 $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0; 711 /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */ 730 $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0; 712 731 $aria_label = esc_attr( 713 732 sprintf( 714 _n( 'Reviews with %1$d star: %2$s. Opens in a new tab.', 'Reviews with %1$d stars: %2$s. Opens in a new tab.', $key ), 733 /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */ 734 _n( 735 'Reviews with %1$d star: %2$s. Opens in a new tab.', 736 'Reviews with %1$d stars: %2$s. Opens in a new tab.', 737 $key 738 ), 715 739 $key, 716 740 number_format_i18n( $ratecount ) … … 720 744 <div class="counter-container"> 721 745 <span class="counter-label"> 722 <a href="https://wordpress.org/support/plugin/<?php echo $api->slug; ?>/reviews/?filter=<?php echo $key; ?>" 723 target="_blank" aria-label="<?php echo $aria_label; ?>"><?php printf( _n( '%d star', '%d stars', $key ), $key ); ?></a> 746 <?php 747 printf( 748 '<a href="%s" target="_blank" aria-label="%s">%s</a>', 749 "https://wordpress.org/support/plugin/{$api->slug}/reviews/?filter={$key}", 750 $aria_label, 751 /* translators: %s: number of stars */ 752 sprintf( _n( '%d star', '%d stars', $key ), $key ) 753 ); 754 ?> 724 755 </span> 725 756 <span class="counter-back">
Note: See TracChangeset
for help on using the changeset viewer.