Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:00:36 AM (7 years ago)
Author:
djpaul
Message:

Templates, Nouveau: string improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/activate.php

    r12082 r12104  
    1818
    1919            <?php if ( isset( $_GET['e'] ) ) : ?>
    20                 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
     20                <p><?php esc_html_e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    2121            <?php else : ?>
    22                 <p><?php printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_domain() ) ); ?></p>
     22                <p>
     23                    <?php
     24                    echo esc_html(
     25                        sprintf(
     26                            __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
     27                            wp_login_url( bp_get_root_domain() )
     28                        )
     29                    );
     30                    ?>
     31                </p>
    2332            <?php endif; ?>
    2433
    2534        <?php else : ?>
    2635
    27             <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
     36            <p><?php esc_html_e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
    2837
    2938            <form action="" method="post" class="standard-form" id="activation-form">
    3039
    31                 <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
     40                <label for="key"><?php esc_html_e( 'Activation Key:', 'buddypress' ); ?></label>
    3241                <input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
    3342
    3443                <p class="submit">
    35                     <input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', 'buddypress' ); ?>" />
     44                    <input type="submit" name="submit" value="<?php echo esc_attr_x( 'Activate', 'button', 'buddypress' ); ?>" />
    3645                </p>
    3746
Note: See TracChangeset for help on using the changeset viewer.