WordPress.org

Plugin Directory

Changeset 532382


Ignore:
Timestamp:
04/17/12 16:49:11 (2 years ago)
Author:
josephscott
Message:

Translation improvements for the new widget code, props dimadin

Also mention the new widget code in the change log.

Fixes #1511

Location:
akismet/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/readme.txt

    r511476 r532382  
    3535* Add more checks on the scheduled re-check feature, force it to be no more than 20 minutes in the future 
    3636* Preloading mshot screens on comment page after everything else on the page has loaded 
     37* Updated widget code 
    3738 
    3839= 2.5.5 = 
  • akismet/trunk/widget.php

    r531992 r532382  
    88        parent::__construct( 
    99            'akismet_new_widget', 
    10             'Akismet New Widget', 
     10            __( 'Akismet New Widget' ), 
    1111            array( 'description' => __( 'Display the number of spam comments Akismet has caught' ) ) 
    1212        ); 
    1313 
    1414        if ( is_active_widget( false, false, $this->id_base ) ) { 
    15             add_action( 'wp_head', 'Akismet_New_Widget::css' ); 
     15            add_action( 'wp_head', array( $this, 'css' ) ); 
    1616        } 
    1717    } 
     
    9494 
    9595    <div class="a-stats"> 
    96         <a href="http://akismet.com" target="_blank" title=""><strong class="count"><?php echo number_format_i18n( $count ) . __( ' spam</strong> blocked by <strong>Akismet' ); ?></strong></a> 
     96        <a href="http://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count ), number_format_i18n( $count ) ); ?></a> 
    9797    </div> 
    9898 
Note: See TracChangeset for help on using the changeset viewer.