Make WordPress Core

Changeset 53390


Ignore:
Timestamp:
05/11/2022 08:44:35 AM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

    r52211 r53390  
    379379                . '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'twentytwentyone' ) . '</strong> '
    380380                . __( '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' );
    381         wp_add_privacy_policy_content( 'Twenty Twenty-One', wp_kses_post( wpautop( $content, false ) ) );
     381        wp_add_privacy_policy_content( __( 'Twenty Twenty-One', 'twentytwentyone' ), wp_kses_post( wpautop( $content, false ) ) );
    382382    }
    383383
Note: See TracChangeset for help on using the changeset viewer.