Make WordPress Core

Changeset 56606


Ignore:
Timestamp:
09/18/2023 07:02:45 AM (16 months ago)
Author:
isabel_brison
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit.php

    r56573 r56606  
    382382);
    383383$bulk_messages['wp_block'] = array(
    384     /* translators: %s: Number of blocks. */
    385     'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
    386     'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
    387                     /* translators: %s: Number of blocks. */
    388                     _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
    389     /* translators: %s: Number of blocks. */
    390     'deleted'   => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
    391     /* translators: %s: Number of blocks. */
    392     'trashed'   => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
    393     /* translators: %s: Number of blocks. */
    394     'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
     384    /* translators: %s: Number of patterns. */
     385    'updated'   => _n( '%s pattern updated.', '%s patterns updated.', $bulk_counts['updated'] ),
     386    'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 pattern not updated, somebody is editing it.' ) :
     387                    /* translators: %s: Number of patterns. */
     388                    _n( '%s pattern not updated, somebody is editing it.', '%s patterns not updated, somebody is editing them.', $bulk_counts['locked'] ),
     389    /* translators: %s: Number of patterns. */
     390    'deleted'   => _n( '%s pattern permanently deleted.', '%s patterns permanently deleted.', $bulk_counts['deleted'] ),
     391    /* translators: %s: Number of patterns. */
     392    'trashed'   => _n( '%s pattern moved to the Trash.', '%s patterns moved to the Trash.', $bulk_counts['trashed'] ),
     393    /* translators: %s: Number of patterns. */
     394    'untrashed' => _n( '%s pattern restored from the Trash.', '%s patterns restored from the Trash.', $bulk_counts['untrashed'] ),
    395395);
    396396
Note: See TracChangeset for help on using the changeset viewer.