Make WordPress Core

Changeset 30889


Ignore:
Timestamp:
12/16/2014 10:05:09 AM (10 years ago)
Author:
nacin
Message:

Update/add plugin recommendation strings.

Update [30887], add a translation function to the Vine string.

fixes #30337. see #30435.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r30887 r30889  
    101101            <svg viewBox="-30 -30 160 160"><path d="M35.3,26.5H5.9c-1.5,0-2.9-0.6-4.1-1.7C0.6,23.6,0,22.2,0,20.6c0-1.6,0.6-3,1.7-4.1c1.2-1.2,2.5-1.7,4.1-1.7h29.4 c1.6,0,3,0.6,4.1,1.7c1.2,1.2,1.7,2.5,1.7,4.1c0,1.6-0.6,3-1.7,4.1C38.3,25.9,36.9,26.5,35.3,26.5z M68.9,77.7 c-1.2,1.2-2.5,1.7-4.1,1.7H17.6c-1.6,0-3-0.6-4.1-1.7c-1.2-1.2-1.7-2.5-1.7-4.1V38.2c0-1.6,0.6-3,1.7-4.1c1.2-1.2,2.5-1.7,4.1-1.7 h47.1c1.6,0,3,0.6,4.1,1.7c1.2,1.2,1.7,2.5,1.7,4.1v35.3C70.6,75.1,70,76.5,68.9,77.7z M76.5,61.8L100,85.3V26.5L76.5,50V61.8z"/></svg>
    102102            <h4><?php _e( 'Vine embeds' ); ?></h4>
    103             <p><?php printf( ( 'Embedding videos from Vine is as simple as pasting a URL onto its own line in a post. See the <a href="%s">full list</a> of supported embeds.' ), 'http://codex.wordpress.org/Embeds' ); ?></p>
     103            <p><?php printf( __( 'Embedding videos from Vine is as simple as pasting a URL onto its own line in a post. See the <a href="%s">full list</a> of supported embeds.' ), 'http://codex.wordpress.org/Embeds' ); ?></p>
    104104        </div>
    105105
     
    114114            <h4><?php _e( 'Plugin recommendations' ); ?></h4>
    115115            <p><?php
    116                 $string = ( 'The <a href="%s">plugin installer</a> now offers a list of plugins you may want to try, based on others who have similar plugins installed as you.' );
     116                $string = __( 'The <a href="%s">plugin installer</a> suggests plugins for you to try. Recommendations are based on the plugins you and other users have installed.' );
    117117                if ( ! current_user_can( 'install_plugins' ) ) {
    118118                    $string = strip_tags( $string );
  • trunk/src/wp-admin/includes/plugin-install.php

    r30782 r30889  
    236236    global $wp_list_table;
    237237
    238     if ( current_filter() == 'install_plugins_favorites' && empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {
    239         return;
     238    switch ( current_filter() ) {
     239        case 'install_plugins_favorites' :
     240            if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {
     241                return;
     242            }
     243            break;
     244        case 'install_plugins_recommended' :
     245            echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
     246            break;
    240247    }
    241248
Note: See TracChangeset for help on using the changeset viewer.