WordPress.org

Plugin Directory

Ticket #1511: akismet_new_widget_i18n.patch

File akismet_new_widget_i18n.patch, 945 bytes (added by dimadin, 2 years ago)
  • widget.php

     
    77        function __construct() { 
    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 
     
    9393?> 
    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 
    9999<?php