@@ -381,7 +381,11 @@ function ( $count ) {
381381 <?php if ( count ( $ reason_counts ) > 5 ) : ?>
382382 <div class="cf7a-reason-item cf7a-reason-summary">
383383 <span class="cf7a-reason-name">
384- <em><?php printf ( esc_html__ ( 'Total unique reasons: %d ' , 'cf7-antispam ' ), count ( $ reason_counts ) ); ?> </em>
384+ <em><?php printf (
385+ /* translators: %d is the number of unique reasons */
386+ esc_html__ ( 'Total unique reasons: %d ' , 'cf7-antispam ' ),
387+ count ( $ reason_counts ) );
388+ ?> </em>
385389 </span>
386390 <span class="cf7a-reason-count">
387391 <em><?php echo esc_html ( array_sum ( $ reason_counts ) ); ?> </em>
@@ -642,9 +646,9 @@ public static function cf7a_get_blacklisted_table() {
642646 cf7a_format_status ( $ row ->status - $ max_attempts ),
643647 esc_html ( $ row ->ip ),
644648 esc_url ( $ unban_url ),
645- esc_html__ ( '[unban ip] ' ),
649+ esc_html__ ( '[unban ip] ' , ' cf7-antispam ' ),
646650 esc_url ( $ ban_url ),
647- esc_html__ ( '[ban forever] ' ),
651+ esc_html__ ( '[ban forever] ' , ' cf7-antispam ' ),
648652 cf7a_compress_array ( $ meta ['reason ' ], true )
649653 );
650654 }
@@ -666,7 +670,11 @@ public static function cf7a_get_blacklisted_table() {
666670 ),
667671 )
668672 ),
669- sprintf ( esc_html__ ( 'Showing %d blacklisted IPs ' , 'cf7-antispam ' ), intval ( $ count ) )
673+ sprintf (
674+ /* translators: %d is the number of blacklisted IPs */
675+ esc_html__ ( 'Showing %d blacklisted IPs ' , 'cf7-antispam ' ),
676+ intval ( $ count )
677+ )
670678 );
671679 } else {
672680 echo '<p> ' . esc_html__ ( 'No blacklisted IPs found. ' , 'cf7-antispam ' ) . '</p> ' ;
@@ -753,7 +761,7 @@ public function cf7a_get_debug_info() {
753761 private function cf7a_get_debug_info_rest_api () {
754762 printf (
755763 '<h3 class="title"><span class="dashicons dashicons-rest-api"></span> Rest API</h3><p><b>Rest API</b><div id="rest-api-status" class="waiting">%s</div></p> ' ,
756- esc_html__ ( 'Waiting for Rest API Status... ' )
764+ esc_html__ ( 'Waiting for Rest API Status... ' , ' cf7-antispam ' )
757765 );
758766 }
759767
@@ -800,17 +808,17 @@ private function cf7a_get_debug_info_dnsbl() {
800808 sprintf (
801809 '<tr><td>%s</td><td>%s</td><td>%f sec</td></tr> ' ,
802810 $ dnsbl ,
803- $ is_spam ? esc_html__ ( 'spam ' ) : esc_html__ ( 'ham ' ),
811+ $ is_spam ? esc_html__ ( 'spam ' , ' cf7-antispam ' ) : esc_html__ ( 'ham ' , ' cf7-antispam ' ),
804812 $ time_taken
805813 );
806814 }
807815
808816 if ( ! empty ( $ performance_test ) ) {
809817 printf (
810818 '<h3 class="title"><span class="dashicons dashicons-privacy"></span> %s</h3><p>%s</p><p>%s: %s</p><table class="dnsbl_table">%s</table> ' ,
811- esc_html__ ( 'DNSBL performance test: ' ),
812- esc_html__ ( 'Results below 0.01 are fine, OK/Spam indicates the status of your ip on DNSBL servers ' ),
813- esc_html__ ( 'Your IP address ' ),
819+ esc_html__ ( 'DNSBL performance test: ' , ' cf7-antispam ' ),
820+ esc_html__ ( 'Results below 0.01 are fine, OK/Spam indicates the status of your ip on DNSBL servers ' , ' cf7-antispam ' ),
821+ esc_html__ ( 'Your IP address ' , ' cf7-antispam ' ),
814822 filter_var ( $ remote_ip , FILTER_VALIDATE_IP ),
815823 wp_kses (
816824 implode ( '' , $ performance_test ),
0 commit comments