Skip to content

Commit

Permalink
Merge pull request #372 from WordPress/fix/footers-i18n
Browse files Browse the repository at this point in the history
Enhancement: Make footers translatable.

Co-authored-by: juanfra <[email protected]>
Co-authored-by: carolinan <[email protected]>
  • Loading branch information
3 people authored Sep 23, 2024
2 parents 7124fc4 + 13693de commit a2e4667
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 5 deletions.
10 changes: 9 additions & 1 deletion patterns/footer-centered.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@
<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size">Designed with <a href="https://wordpress.org">WordPress</a></p>
<p class="has-text-align-center has-small-font-size">
<?php
printf(
/* Translators: Designed with WordPress. %1$s: WordPress link. */
esc_html__( 'Designed with %1$s', 'twentytwentyfive' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentyfive' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
10 changes: 9 additions & 1 deletion patterns/footer-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@
<p class="has-small-font-size">Twenty Twenty-Five</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">Designed with <a href="https://wordpress.org">WordPress</a></p>
<p class="has-small-font-size">
<?php
printf(
/* Translators: Designed with WordPress. %1$s: WordPress link. */
esc_html__( 'Designed with %1$s', 'twentytwentyfive' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentyfive' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@
<p class="has-small-font-size">Twenty Twenty-Five</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">Designed with <a href="https://wordpress.org">WordPress</a></p>
<p class="has-small-font-size">
<?php
printf(
/* Translators: Designed with WordPress. %1$s: WordPress link. */
esc_html__( 'Designed with %1$s', 'twentytwentyfive' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentyfive' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
10 changes: 9 additions & 1 deletion patterns/footer-social.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@
<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size">Designed with <a href="https://wordpress.org">WordPress</a></p>
<p class="has-text-align-center has-small-font-size">
<?php
printf(
/* Translators: Designed with WordPress. %1$s: WordPress link. */
esc_html__( 'Designed with %1$s', 'twentytwentyfive' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentyfive' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
10 changes: 9 additions & 1 deletion patterns/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@
<!-- /wp:paragraph -->

<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">Designed with <a href="https://wordpress.org">WordPress</a></p>
<p class="has-small-font-size">
<?php
printf(
/* Translators: Designed with WordPress. %1$s: WordPress link. */
esc_html__( 'Designed with %1$s', 'twentytwentyfive' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentyfive' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down

0 comments on commit a2e4667

Please sign in to comment.