WordPress.org

Make WordPress Core

Changeset 43849


Ignore:
Timestamp:
10/31/2018 11:34:01 AM (13 months ago)
Author:
danielbachhuber
Message:

Blocks: Include necessary labels for the 'wp_block' post type.

See #45098

Location:
branches/5.0/src
Files:
2 edited

Legend:

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

    r43804 r43849  
    291291    'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
    292292);
     293$bulk_messages['wp_block'] = array(
     294    'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
     295    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
     296    'deleted'   => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
     297    'trashed'   => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
     298    'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
     299);
    293300
    294301/**
  • branches/5.0/src/wp-includes/post.php

    r43827 r43849  
    230230        array(
    231231            'labels'                => array(
    232                 'name'          => __( 'Blocks' ),
    233                 'singular_name' => __( 'Block' ),
    234                 'search_items'  => __( 'Search Blocks' ),
     232                'name'                     => _x( 'Blocks', 'post type general name' ),
     233                'singular_name'            => _x( 'Block', 'post type singular name' ),
     234                'menu_name'                => _x( 'Blocks', 'admin menu' ),
     235                'name_admin_bar'           => _x( 'Block', 'add new on admin bar' ),
     236                'add_new'                  => _x( 'Add New', 'Block' ),
     237                'add_new_item'             => __( 'Add New Block' ),
     238                'new_item'                 => __( 'New Block' ),
     239                'edit_item'                => __( 'Edit Block' ),
     240                'view_item'                => __( 'View Block' ),
     241                'all_items'                => __( 'All Blocks' ),
     242                'search_items'             => __( 'Search Blocks' ),
     243                'not_found'                => __( 'No blocks found.' ),
     244                'not_found_in_trash'       => __( 'No blocks found in Trash.' ),
     245                'filter_items_list'        => __( 'Filter blocks list' ),
     246                'items_list_navigation'    => __( 'Blocks list navigation' ),
     247                'items_list'               => __( 'Blocks list' ),
     248                'item_published'           => __( 'Block published.' ),
     249                'item_published_privately' => __( 'Block published privately.' ),
     250                'item_reverted_to_draft'   => __( 'Block reverted to draft.' ),
     251                'item_scheduled'           => __( 'Block scheduled.' ),
     252                'item_updated'             => __( 'Block updated.' ),
    235253            ),
    236254            'public'                => false,
Note: See TracChangeset for help on using the changeset viewer.