Twenty Twenty-Two: Make 404 pattern search label and button translatable.

This changes makes the Twenty Twenty-Two "hidden-404" pattern fully prepared for translation.

Props kjellr, walbo.
Fixes #54928.


git-svn-id: https://develop.svn.wordpress.org/trunk@52664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-02-02 23:41:19 +00:00
parent 50e2499c2c
commit f8148ca4f4
@@ -11,5 +11,5 @@ return array(
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:search {"label":"Search","showLabel":false,"width":50,"widthUnit":"%","buttonText":"Search","buttonUseIcon":true,"align":"center"} /-->',
<!-- wp:search {"label":"' . esc_html_x( 'Search', 'label', 'twentytwentytwo' ) . '","showLabel":false,"width":50,"widthUnit":"%","buttonText":"' . esc_html__( 'Search', 'twentytwentytwo' ) . '","buttonUseIcon":true,"align":"center"} /-->',
);