Making WordPress.org


Ignore:
Timestamp:
05/24/2018 10:40:29 AM (7 years ago)
Author:
dd32
Message:

Main: Privacy: Add translated page titles and meta descriptions. Translate the form error strings and a few others that were missed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy-data-export-request.php

    r7222 r7225  
    4343}
    4444
    45 // TODO See inc/page-meta-descriptions.php for the meta description for this page.
     45// See inc/page-meta-descriptions.php for the meta description for this page.
    4646
    4747add_action( 'wp_head', function() {
     
    5858            padding: 6px;
    5959        }
     60
     61        form.request-form label {
     62            display: block;
     63            color: #555;
     64            font-size: 0.8em;
     65        }
    6066        form.request-form input[type="email"] {
    61             width: 75%;
     67            width: 100%;
    6268        }
    6369    </style>';
     
    8591
    8692                    <?php if ( $error_message ) : ?>
    87                         <p class="error"><strong>An error occured with your request:</strong> <?php echo $error_message; ?></p>
     93                        <p class="error">
     94                            <strong><?php esc_html_e( 'An error occured with your request:', 'wporg' ); ?></strong><br>
     95                            <?php echo $error_message; ?>
     96                        </p>
    8897                    <?php elseif ( $success ) : ?>
    8998                    <p class="success"><strong><?php esc_html_e( 'Please check your email for a confirmation link, and follow the instructions to authenticate your request.', 'wporg' ); ?></strong></p>
     
    97106                    <form id="export-request-form" class="request-form" method="POST" action="#">
    98107                        <label for="email">
    99                             Email Address
     108                            <?php esc_html_e( 'Email Address', 'wporg' ); ?>
    100109                        </label>
    101110                        <input
    102111                            type="email"
    103112                            name="email" id="email"
    104                             placeholder="you@example.com"
     113                            placeholder="<?php
     114                                /* translators: Example placeholder email address */
     115                                esc_attr_e( 'you@example.com', 'wporg' )
     116                            ?>"
    105117                            required
    106118                            value="<?php echo esc_attr( $email ); ?>"
    107119                        >
    108                         <br>
    109120                        <p><?php esc_html_e( 'By submitting this form, you declare that you are the individual owner of the specified email address and its associated accounts; and that all submitted information including any supplemental details necessary to verify your identity are true.', 'wporg' ); ?></p>
    110                         <br />
    111                         <?php reCAPTCHA\display_submit_button( esc_attr__( 'Accept Declaration and Request Export', 'wporg' ) ); ?>
     121                        <?php reCAPTCHA\display_submit_button( __( 'Accept Declaration and Request Export', 'wporg' ) ); ?>
    112122                        <?php if ( is_user_logged_in() ) wp_nonce_field( $nonce_action ); ?>
    113123                    </form>
    114124
    115                     <p><strong>Please note:</strong> <?php esc_html_e( 'Before we can begin processing your request, we\'ll require that you verify ownership of the email address. If the email address is associated with an account, we\'ll also require you to log in to that account first.', 'wporg' ); ?></p>
     125                    <p><?php esc_html_e( "Please Note: Before we can begin processing your request, we'll require that you verify ownership of the email address. If the email address is associated with an account, we'll also require you to log in to that account first.", 'wporg' ); ?></p>
    116126
    117127                </section>
Note: See TracChangeset for help on using the changeset viewer.