WordPress.org

Plugin Directory

Changeset 636660


Ignore:
Timestamp:
12/10/12 17:07:41 (17 months ago)
Author:
mitchoyoshitaka
Message:

simplify optin_notice and i18n

Location:
yet-another-related-posts-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yet-another-related-posts-plugin/trunk/class-admin.php

    r633817 r636660  
    194194    } 
    195195 
    196     function optin_notice( $pool = null ) { 
     196    function optin_notice() { 
    197197        $screen = get_current_screen(); 
    198198        if ( is_null($screen) || $screen->id == 'settings_page_yarpp' ) 
     
    203203 
    204204        echo '<div class="updated fade"><p>'; 
    205  
    206         // @todo i18n 
    207         if ( is_null( $pool ) ) 
    208             $pool = $this->core->get_option( 'pools[message]' ); 
    209         switch ( $pool ) { 
    210             case 0: 
    211                 echo "<strong>Help make YARPP better</strong> by sending information about YARPP's settings and usage statistics."; 
    212                 break; 
    213             case 1: 
    214                 echo sprintf( __( "With your permission, YARPP will send information about YARPP's settings, usage, and environment back to a central server at %s.", 'yarpp' ), '<code>yarpp.org</code>') . ' '; 
    215                 echo __( "This information will be used to improve YARPP in the future and help decide future development decisions for YARPP.", 'yarpp' ) . ' '; 
    216                 echo '<strong>' . __( "Contributing this data will help make YARPP better for you and for other YARPP users.", 'yarpp' ) . '</strong>'; 
    217                 break; 
    218             case 2: 
    219                 echo "<strong>Help make YARPP better.</strong> "; 
    220                 echo sprintf( "With your permission, YARPP will send information about YARPP's settings, usage, and environment back to a central server at %s.", '<code>yarpp.org</code>') . ' '; 
    221                 echo "This information will be used to improve YARPP in the future and help decide future development decisions for YARPP."; 
    222                 break; 
    223             case 3: 
    224                 echo "<strong>Help make YARPP awesome</strong> by allowing it to collect information about your site and how it uses YARPP."; 
    225                 break; 
    226             case 4: 
    227                 echo "<strong>We'd like your help making YARPP awesome.</strong> Is it OK if YARPP occasionally collects some data about your site and its use of YARPP?"; 
    228                 break; 
    229             case 5: 
    230                 echo "Would you like to help make YARPP better by sharing some technical information with YARPP?"; 
    231                 break; 
    232         } 
     205        _e( "<strong>Help make YARPP better</strong> by sending information about YARPP's settings and usage statistics.", 'yarpp' ); 
    233206 
    234207        echo '</p><p>'; 
  • yet-another-related-posts-plugin/trunk/class-core.php

    r634494 r636660  
    122122            'auto_display_archive' => false, // new in 4 
    123123            'auto_display_post_types' => array( 'post' ), // new in 4, replacing auto_display 
    124             'pools' => array( 'message' => mt_rand(0,5) ), // new in 4 
     124            'pools' => array(), // new in 4 
    125125        ); 
    126126    } 
Note: See TracChangeset for help on using the changeset viewer.