From 83c2718769165bb170aee27671702c7187c9a5ef Mon Sep 17 00:00:00 2001 From: pedro-mendonca Date: Thu, 23 Nov 2023 11:47:57 +0000 Subject: [PATCH] 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() ) ) . '';