-
Notifications
You must be signed in to change notification settings - Fork 92
Replace template strings with translatable patterns #182
Conversation
Co-authored-by: Saju Ahmed <[email protected]>
inc/patterns/general-404.php
Outdated
<h2 class="has-text-align-center" style="font-size:clamp(4rem, 40vw, 20rem);font-weight:200;line-height:1;margin-top:0;margin-bottom:0;">404</h2> | ||
<!-- /wp:heading --> | ||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">' . esc_html( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented the suggestion from here #154 (comment)
@jffng rather than implement a separate credit line block, can we just make the entirety of the https://github.com/WordPress/twentytwentytwo/blob/trunk/inc/patterns/footer-default.php |
I have an idea for a fix in Gutenberg which would remove this wrapping div entirely. |
Cool — ideally these should be entirely seamless replacements. |
Assuming WordPress/gutenberg#36090 lands, this PR seems to be in good shape. 👍 |
Co-authored-by: Kjell Reigstad <[email protected]>
Merging since the above Gutenberg PR landed. |
Note that some of the references below are not the only contributions (commits, PR review, helpful issue input, etc.) from these folks, but merely the first ones I encountered while reviewing items committed to `trunk` since the initial branch commit. @westonruter via WordPress#51 @ntwb via WordPress#73 @juricav via WordPress#113 @Sandstromer via WordPress#69 @jasmussen via WordPress#74 @melchoyce via WordPress#16 @Riyadh1734 via WordPress#182 @desrosj via WordPress#223 @beafialho via WordPress#172 @clucasrowlands via WordPress#171 @Otto42 via WordPress#28 @luminuu via WordPress#107 @felixarntz via WordPress#240
* add missing props to CONTRIBUTORS.md Note that some of the references below are not the only contributions (commits, PR review, helpful issue input, etc.) from these folks, but merely the first ones I encountered while reviewing items committed to `trunk` since the initial branch commit. @westonruter via #51 @ntwb via #73 @juricav via #113 @Sandstromer via #69 @jasmussen via #74 @melchoyce via #16 @Riyadh1734 via #182 @desrosj via #223 @beafialho via #172 @clucasrowlands via #171 @Otto42 via #28 @luminuu via #107 @felixarntz via #240 * add dotorg handles to CONTRIBUTORS.md * Fix Rich's WP.org username. Co-authored-by: Kjell Reigstad <[email protected]>
Description
This PR adds a 404 pattern to the general category, and implements it patterns inside the 404 template. It also replaces the contents of
footer.html
with thefooter-default
pattern.This is done so that the strings can be marked for translation.
Closes #30.
Screenshots
There should be no visual change.
Testing Instructions
Go to a 404 page and verify the contents appear as expected.