Make WordPress Core

Changeset 52666 for branches/5.9


Ignore:
Timestamp:
02/03/2022 12:13:55 AM (2 years ago)
Author:
peterwilsoncc
Message:

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, audrasjb.
Merges [52664] to the 5.9 branch.
Fixes #54928.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php

    r52283 r52666  
    1212                    <p class="has-text-align-center">' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '</p>
    1313                    <!-- /wp:paragraph -->
    14                     <!-- wp:search {"label":"Search","showLabel":false,"width":50,"widthUnit":"%","buttonText":"Search","buttonUseIcon":true,"align":"center"} /-->',
     14                    <!-- wp:search {"label":"' . esc_html_x( 'Search', 'label', 'twentytwentytwo' ) . '","showLabel":false,"width":50,"widthUnit":"%","buttonText":"' . esc_html__( 'Search', 'twentytwentytwo' ) . '","buttonUseIcon":true,"align":"center"} /-->',
    1515);
Note: See TracChangeset for help on using the changeset viewer.