From ad9a9bcc1c332ba67959684f08fad5c55d2eb24e Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Thu, 9 Mar 2023 16:54:00 +0000 Subject: [PATCH] Editor: Combine Date template description translations. Combine the 2 translatable strings into 1 string. Why? The example URL does not require a separate translation. Combining makes the string easier to view in context. Follow-up to [55500]. Props SergeyBiryukov. See #57892. git-svn-id: https://develop.svn.wordpress.org/trunk@55501 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-template-utils.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 4f9990547c..915c65c0dd 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -155,11 +155,7 @@ function get_default_block_template_types() { ), 'date' => array( 'title' => _x( 'Date', 'Template name' ), - /* translators: %s: Example URL. */ - 'description' => sprintf( - __( 'Displays a post archive when a specific date is visited (e.g., %s).' ), - __( 'example.com/2023/' ) - ), + 'description' => __( 'Displays a post archive when a specific date is visited (e.g., example.com/2023/).' ), ), 'tag' => array( 'title' => _x( 'Tag', 'Template name' ),