X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ceb5a929e00123b4e224977c6b5a149f6431b250:/wp-content/plugins/akismet/widget.php..41578db67d72562346e4dbb2a14889b23d522813:/wp-content/plugins/akismet/class.akismet-widget.php diff --git a/wp-content/plugins/akismet/widget.php b/wp-content/plugins/akismet/class.akismet-widget.php similarity index 83% rename from wp-content/plugins/akismet/widget.php rename to wp-content/plugins/akismet/class.akismet-widget.php index 8c5a120f..a60ae603 100644 --- a/wp-content/plugins/akismet/widget.php +++ b/wp-content/plugins/akismet/class.akismet-widget.php @@ -5,10 +5,12 @@ class Akismet_Widget extends WP_Widget { function __construct() { + load_plugin_textdomain( 'akismet' ); + parent::__construct( 'akismet_widget', - __( 'Akismet Widget' ), - array( 'description' => __( 'Display the number of spam comments Akismet has caught' ) ) + __( 'Akismet Widget' , 'akismet'), + array( 'description' => __( 'Display the number of spam comments Akismet has caught' , 'akismet') ) ); if ( is_active_widget( false, false, $this->id_base ) ) { @@ -23,7 +25,7 @@ class Akismet_Widget extends WP_Widget { .a-stats { width: auto; } -.a-stats a { +.a-stats a { background: #7CA821; background-image:-moz-linear-gradient(0% 100% 90deg,#5F8E14,#7CA821); background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#7CA821),to(#5F8E14)); @@ -41,7 +43,7 @@ class Akismet_Widget extends WP_Widget { -webkit-border-radius:3px; width: 100%; } -.a-stats a:hover { +.a-stats a:hover { text-decoration: none; background-image:-moz-linear-gradient(0% 100% 90deg,#6F9C1B,#659417); background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#659417),to(#6F9C1B)); @@ -61,19 +63,19 @@ class Akismet_Widget extends WP_Widget { function form( $instance ) { if ( $instance ) { - $title = esc_attr( $instance['title'] ); + $title = $instance['title']; } else { - $title = __( 'Spam Blocked' ); + $title = __( 'Spam Blocked' , 'akismet'); } ?>

- - + +

-
- %1$s spam blocked by Akismet', '%1$s spam blocked by Akismet', $count ), number_format_i18n( $count ) ); ?> + %1$s spam blocked by Akismet', '%1$s spam blocked by Akismet', $count , 'akismet'), number_format_i18n( $count ) ); ?>