Changeset 56515 for trunk/src/wp-includes/post.php
- Timestamp:
- 09/05/2023 07:24:31 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r56491 r56515 76 76 'name' => _x( 'Media', 'post type general name' ), 77 77 'name_admin_bar' => _x( 'Media', 'add new from admin bar' ), 78 'add_new' => _ x( 'Add New', 'file' ),78 'add_new' => __( 'Add New Media File' ), 79 79 'edit_item' => __( 'Edit Media' ), 80 80 'view_item' => __( 'View Attachment Page' ), … … 203 203 'name' => _x( 'Changesets', 'post type general name' ), 204 204 'singular_name' => _x( 'Changeset', 'post type singular name' ), 205 'add_new' => _ x( 'Add New', 'CustomizeChangeset' ),205 'add_new' => __( 'Add New Changeset' ), 206 206 'add_new_item' => __( 'Add New Changeset' ), 207 207 'new_item' => __( 'New Changeset' ), … … 285 285 'name' => _x( 'Patterns', 'post type general name' ), 286 286 'singular_name' => _x( 'Pattern', 'post type singular name' ), 287 'add_new' => _ x( 'Add New', 'Pattern' ),288 'add_new_item' => __( 'Add new Pattern' ),287 'add_new' => __( 'Add New Pattern' ), 288 'add_new_item' => __( 'Add New Pattern' ), 289 289 'new_item' => __( 'New Pattern' ), 290 290 'edit_item' => __( 'Edit Block Pattern' ), … … 348 348 'name' => _x( 'Templates', 'post type general name' ), 349 349 'singular_name' => _x( 'Template', 'post type singular name' ), 350 'add_new' => _ x( 'Add New', 'Template' ),350 'add_new' => __( 'Add New Template' ), 351 351 'add_new_item' => __( 'Add New Template' ), 352 352 'new_item' => __( 'New Template' ), … … 409 409 'name' => _x( 'Template Parts', 'post type general name' ), 410 410 'singular_name' => _x( 'Template Part', 'post type singular name' ), 411 'add_new' => _ x( 'Add New', 'Template Part' ),411 'add_new' => __( 'Add New Template Part' ), 412 412 'add_new_item' => __( 'Add New Template Part' ), 413 413 'new_item' => __( 'New Template Part' ), … … 506 506 'name' => _x( 'Navigation Menus', 'post type general name' ), 507 507 'singular_name' => _x( 'Navigation Menu', 'post type singular name' ), 508 'add_new' => _ x( 'Add New', 'Navigation Menu' ),508 'add_new' => __( 'Add New Navigation Menu' ), 509 509 'add_new_item' => __( 'Add New Navigation Menu' ), 510 510 'new_item' => __( 'New Navigation Menu' ), … … 1932 1932 * by `$post_type_object->label`. Default is 'Posts' / 'Pages'. 1933 1933 * - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'. 1934 * - `add_new` - Default is 'Add New ' for both hierarchical and non-hierarchical types.1934 * - `add_new` - Default is 'Add New Type' for both hierarchical and non-hierarchical types. 1935 1935 * When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context} 1936 * matching your post type. Example: `_ x( 'Add New', 'product', 'textdomain' );`.1936 * matching your post type. Example: `__( 'Add New Product', 'textdomain' );`. 1937 1937 * - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'. 1938 1938 * - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.
Note: See TracChangeset
for help on using the changeset viewer.