From 26da579ad1b4b20206d0fd4996ffdc17d7f6be48 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 6 Feb 2025 09:58:44 +0100 Subject: [PATCH] At A Glance messaging: ensure numbers are correctly displayed (#458) Since the number of posts by friends can become quite high, it's important that such a high number be properly displayed for each locale. --- includes/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-admin.php b/includes/class-admin.php index b6a455b1..6af56890 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -3444,7 +3444,7 @@ public function dashboard_glance_items( $items ) { if ( $friend_post_count ) { // translators: %s is the number of friend posts. - $items[] = '' . sprintf( _n( '%s Post by Friends', '%s Posts by Friends', $friend_post_count, 'friends' ), $friend_post_count ) . ''; + $items[] = '' . sprintf( _n( '%s Post by Friends', '%s Posts by Friends', $friend_post_count, 'friends' ), number_format_i18n( $friend_post_count ) ) . ''; } return $items; }