Skip to content

Commit

Permalink
Update confirmation messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Mar 28, 2024
1 parent 46fe3c7 commit 021f490
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ export const resetTemplateAction = {
items.length > 1
? sprintf(
/* translators: The number of items. */
__( '%s items reverted.' ),
__( '%s items reset.' ),
items.length
)
: sprintf(
/* translators: The template/part's name. */
__( '"%s" reverted.' ),
__( '"%s" reset.' ),
decodeEntities( items[ 0 ].title.rendered )
),
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function ResetMenuItem( { template, onClose } ) {
createSuccessNotice(
sprintf(
/* translators: The template/part's name. */
__( '"%s" reverted.' ),
__( '"%s" reset.' ),
decodeEntities( template.title.rendered )
),
{
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export const revertTemplate =

registry
.dispatch( noticesStore )
.createSuccessNotice( __( 'Template reverted.' ), {
.createSuccessNotice( __( 'Template reset.' ), {
type: 'snackbar',
id: noticeId,
actions: [
Expand Down

0 comments on commit 021f490

Please sign in to comment.