From 68d1605ed707ac9a7eb922f81300e7f6bde4647f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Aug 2020 16:59:03 +0000 Subject: [PATCH] Editor: Make some hardcoded strings in block patterns translatable. Props ocean90, youknowriad. Fixes #50842. git-svn-id: https://develop.svn.wordpress.org/trunk@48726 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-patterns/large-header-button.php | 2 +- src/wp-includes/block-patterns/large-header.php | 2 +- src/wp-includes/block-patterns/quote.php | 2 +- src/wp-includes/block-patterns/two-images.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/block-patterns/large-header-button.php b/src/wp-includes/block-patterns/large-header-button.php index 0dde847e40..68834ef361 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' ), diff --git a/src/wp-includes/block-patterns/large-header.php b/src/wp-includes/block-patterns/large-header.php index dd2132d213..ee681e880a 100644 --- a/src/wp-includes/block-patterns/large-header.php +++ b/src/wp-includes/block-patterns/large-header.php @@ -7,7 +7,7 @@ return array( 'title' => __( 'Large header with a heading' ), - 'content' => "\n
\n

" . __( 'Don Quixote' ) . "

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

" . __( 'Don Quixote' ) . "

\n
\n", 'viewportWidth' => 1000, 'categories' => array( 'header' ), 'description' => _x( 'A large hero section with an example background image and a heading in the center.', 'Block pattern description' ), diff --git a/src/wp-includes/block-patterns/quote.php b/src/wp-includes/block-patterns/quote.php index d7b142b354..d8fc0e9e88 100644 --- a/src/wp-includes/block-patterns/quote.php +++ b/src/wp-includes/block-patterns/quote.php @@ -7,7 +7,7 @@ return array( 'title' => __( 'Quote' ), - 'content' => "\n
\n
\"Pencil
\n\n\n\n

" . __( '"Do you see over yonder, friend Sancho, thirty or forty hulking giants? I intend to do battle with them and slay them."' ) . '

' . __( '— Don Quixote' ) . "
\n\n\n\n
\n
\n", + 'content' => "\n
\n
\""
\n\n\n\n

" . __( '"Do you see over yonder, friend Sancho, thirty or forty hulking giants? I intend to do battle with them and slay them."' ) . '

' . __( '— Don Quixote' ) . "
\n\n\n\n
\n
\n", 'viewportWidth' => 800, 'categories' => array( 'text' ), 'description' => _x( 'A quote and citation with an image above, and a separator at the bottom.', 'Block pattern description' ), diff --git a/src/wp-includes/block-patterns/two-images.php b/src/wp-includes/block-patterns/two-images.php index 2b4f0f1805..94fba4fb8c 100644 --- a/src/wp-includes/block-patterns/two-images.php +++ b/src/wp-includes/block-patterns/two-images.php @@ -9,5 +9,5 @@ return array( 'title' => __( 'Two images side by side' ), 'categories' => array( 'gallery' ), 'description' => _x( 'An image gallery with two example images.', 'Block pattern description' ), - 'content' => "\n\n", + 'content' => "\n\n", );