Twenty Twenty-One: i18n fix for privacy policy section title.

This change makes the Twenty Twenty-One privacy policy section title translatable.

Props nlpro.
Fixes #55709.


git-svn-id: https://develop.svn.wordpress.org/trunk@53390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-05-11 08:44:35 +00:00
parent c70e76772c
commit 4083456e42

View File

@ -378,7 +378,7 @@ class Twenty_Twenty_One_Dark_Mode {
$content = '<p class="privacy-policy-tutorial">' . __( 'Twenty Twenty-One uses LocalStorage when Dark Mode support is enabled.', 'twentytwentyone' ) . '</p>'
. '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'twentytwentyone' ) . '</strong> '
. __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.<br> LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.<br> No data is saved in the database or transferred.', 'twentytwentyone' );
wp_add_privacy_policy_content( 'Twenty Twenty-One', wp_kses_post( wpautop( $content, false ) ) );
wp_add_privacy_policy_content( __( 'Twenty Twenty-One', 'twentytwentyone' ), wp_kses_post( wpautop( $content, false ) ) );
}
}