From d0fe144668543d54f3ca9ad94855195d7df2c9a6 Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Thu, 23 Nov 2023 11:18:57 +0000 Subject: [PATCH 1/2] Remove double spaces --- inc/gui.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/gui.class.php b/inc/gui.class.php index df0f130e..46168164 100644 --- a/inc/gui.class.php +++ b/inc/gui.class.php @@ -295,7 +295,7 @@ public static function options_page() { ?> tag with link to ISO codes reference. 2: closing tag. */ - esc_html__( 'Denied %1$sISO country codes%2$s for this option.', 'antispam-bee' ), + esc_html__( 'Denied %1$sISO country codes%2$s for this option.', 'antispam-bee' ), wp_kses_post( $iso_codes_link ), '' ); @@ -310,7 +310,7 @@ public static function options_page() { ?> tag with link to ISO codes reference. 2: closing tag. */ - esc_html__( 'Allowed %1$sISO country codes%2$s for this option.', 'antispam-bee' ), + esc_html__( 'Allowed %1$sISO country codes%2$s for this option.', 'antispam-bee' ), wp_kses_post( $iso_codes_link ), '' ); From 83c2718769165bb170aee27671702c7187c9a5ef Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Thu, 23 Nov 2023 11:47:57 +0000 Subject: [PATCH 2/2] Add plural translation --- antispam_bee.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/antispam_bee.php b/antispam_bee.php index c70fb2a2..6e2a8d13 100755 --- a/antispam_bee.php +++ b/antispam_bee.php @@ -764,7 +764,12 @@ public static function add_dashboard_count( $items = array() ) { $items[] = '' . esc_html( sprintf( // translators: The number of spam comments Antispam Bee blocked so far. - __( '%s Blocked', 'antispam-bee' ), + _n( + '%s Blocked', + '%s Blocked', + self::_get_spam_count(), + 'antispam-bee' + ), self::_get_spam_count() ) ) . '';