From 11753b9481676210779bb0622e77c5aa76fabf67 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 14 Dec 2021 09:07:17 +0000 Subject: [PATCH] Posts, Post Types: Add missing translation context on FSE related post types labels. This makes it easier for translators to identify the context of each label. This change also brings consistency with other built-in post types. Follow-up to [52145], [52069], [52062], [52041], [51003]. Props audrasjb, hellofromTonya. Fixes #54611. git-svn-id: https://develop.svn.wordpress.org/trunk@52368 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 98a7ffb8f0..d9c2774adf 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -333,8 +333,8 @@ function create_initial_post_types() { 'wp_template', array( 'labels' => array( - 'name' => __( 'Templates' ), - 'singular_name' => __( 'Template' ), + 'name' => _x( 'Templates', 'post type general name' ), + 'singular_name' => _x( 'Template', 'post type singular name' ), 'add_new' => _x( 'Add New', 'Template' ), 'add_new_item' => __( 'Add New Template' ), 'new_item' => __( 'New Template' ), @@ -393,8 +393,8 @@ function create_initial_post_types() { 'wp_template_part', array( 'labels' => array( - 'name' => __( 'Template Parts' ), - 'singular_name' => __( 'Template Part' ), + 'name' => _x( 'Template Parts', 'post type general name' ), + 'singular_name' => _x( 'Template Part', 'post type singular name' ), 'add_new' => _x( 'Add New', 'Template Part' ), 'add_new_item' => __( 'Add New Template Part' ), 'new_item' => __( 'New Template Part' ), @@ -480,8 +480,8 @@ function create_initial_post_types() { 'wp_navigation', array( 'labels' => array( - 'name' => __( 'Navigation Menus' ), - 'singular_name' => __( 'Navigation Menu' ), + 'name' => _x( 'Navigation Menus', 'post type general name' ), + 'singular_name' => _x( 'Navigation Menu', 'post type singular name' ), 'add_new' => _x( 'Add New', 'Navigation Menu' ), 'add_new_item' => __( 'Add New Navigation Menu' ), 'new_item' => __( 'New Navigation Menu' ),