From b4819255d3800bc427edf012b2369440563567ee Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Dec 2020 17:01:50 +0000 Subject: [PATCH] Editor: Don't unnecessarily split a translatable string in block templates. As a best practice, strings available for translation should contain entire sentences whenever possible. Splitting a sentence in two parts and putting them back together after translation should be avoided, as the word order in other languages can be different from English. Props tobifjellner, kebbet, audrasjb, mukesh27, hellofromTonya, azaozz, SergeyBiryukov. Fixes #51893. git-svn-id: https://develop.svn.wordpress.org/trunk@49722 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-patterns/large-header-button.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/block-patterns/large-header-button.php b/src/wp-includes/block-patterns/large-header-button.php index 21decac432..313dc26b47 100644 --- a/src/wp-includes/block-patterns/large-header-button.php +++ b/src/wp-includes/block-patterns/large-header-button.php @@ -7,7 +7,7 @@ return array( 'title' => __( 'Large header with a heading and a button ' ), - 'content' => "\n
\n
\n
\n
\n
\n\n\n\n
\n
\n\n\n\n

" . __( 'Thou hast seen' ) . '
' . __( 'nothing yet' ) . "

\n\n\n\n\n\n\n\n
\n
\n\n\n\n
\n
\n
\n
\n
\n", + 'content' => "\n
\n
\n
\n
\n
\n\n\n\n
\n
\n\n\n\n

" . __( 'Thou hast seen
nothing yet' ) . "

\n\n\n\n\n\n\n\n
\n
\n\n\n\n
\n
\n
\n
\n
\n", 'viewportWidth' => 1000, 'categories' => array( 'header' ), 'description' => _x( 'A large hero section with a bright gradient background, a big heading and a filled button.', 'Block pattern description' ),