From 3239a8e8f40cfc22dec4d265c72d27912c8822e8 Mon Sep 17 00:00:00 2001 From: Isabel Brison Date: Mon, 18 Sep 2023 07:02:45 +0000 Subject: [PATCH] Posts: update admin notices to refer to patterns. Updates `wp_block` action notices to refer to patterns instead of blocks. Props aaronrobertshaw, mukesh27, oglekler. Fixes #59305. git-svn-id: https://develop.svn.wordpress.org/trunk@56606 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php index 7f61a60563576..6e4a05eabcc18 100644 --- a/src/wp-admin/edit.php +++ b/src/wp-admin/edit.php @@ -381,17 +381,17 @@ 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), ); $bulk_messages['wp_block'] = array( - /* translators: %s: Number of blocks. */ - 'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ), - 'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : - /* translators: %s: Number of blocks. */ - _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ), - /* translators: %s: Number of blocks. */ - 'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: Number of blocks. */ - 'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ), - /* translators: %s: Number of blocks. */ - 'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ), + /* translators: %s: Number of patterns. */ + 'updated' => _n( '%s pattern updated.', '%s patterns updated.', $bulk_counts['updated'] ), + 'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 pattern not updated, somebody is editing it.' ) : + /* translators: %s: Number of patterns. */ + _n( '%s pattern not updated, somebody is editing it.', '%s patterns not updated, somebody is editing them.', $bulk_counts['locked'] ), + /* translators: %s: Number of patterns. */ + 'deleted' => _n( '%s pattern permanently deleted.', '%s patterns permanently deleted.', $bulk_counts['deleted'] ), + /* translators: %s: Number of patterns. */ + 'trashed' => _n( '%s pattern moved to the Trash.', '%s patterns moved to the Trash.', $bulk_counts['trashed'] ), + /* translators: %s: Number of patterns. */ + 'untrashed' => _n( '%s pattern restored from the Trash.', '%s patterns restored from the Trash.', $bulk_counts['untrashed'] ), ); /**