Skip to content

Commit

Permalink
Merge pull request #545 from pedro-mendonca/i18n
Browse files Browse the repository at this point in the history
Small improvements on plugin i18n
  • Loading branch information
Zodiac1978 authored Jan 7, 2024
2 parents d46e6ef + bca68ee commit 58014ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion antispam_bee.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,12 @@ public static function add_dashboard_count( $items = array() ) {
$items[] = '<span class="ab-count">' . 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()
)
) . '</span>';
Expand Down
4 changes: 2 additions & 2 deletions inc/gui.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function options_page() { ?>
<?php
printf(
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> 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 ),
'</a>'
);
Expand All @@ -310,7 +310,7 @@ public static function options_page() { ?>
<?php
printf(
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> 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 ),
'</a>'
);
Expand Down

0 comments on commit 58014ba

Please sign in to comment.