Skip to:
Content

BuddyPress.org

Changeset 10689


Ignore:
Timestamp:
04/05/2016 03:39:32 PM (5 years ago)
Author:
dcavins
Message:

Improve translation strings in email change notice.

Move HTML tags out of translation strings
when possible.

Props ramiy, DJPaul, boonebgorges.

Fixes #6900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-template.php

    r10419 r10689  
    8989    <div id="message" class="bp-template-notice error">
    9090        <p><?php printf(
    91             __( 'There is a pending change of your email address to %1$s.<br />Check your email (%2$s) for the verification link. <a href="%3$s">Cancel</a>', 'buddypress' ),
    92             '<code>' . $pending_email['newemail'] . '</code>',
    93             '<code>' . $pending_email['newemail'] . '</code>',
     91            __( 'There is a pending change of your email address to %s.', 'buddypress' ),
     92            '<code>' . esc_html( $pending_email['newemail'] ) . '</code>'
     93        ); ?>
     94        <br />
     95        <?php printf(
     96            __( 'Check your email (%1$s) for the verification link, or <a href="%s">cancel the pending change</a>.', 'buddypress' ),
     97            '<code>' . esc_html( $pending_email['newemail'] ) . '</code>',
    9498            esc_url( bp_displayed_user_domain() . bp_get_settings_slug() . '/?dismiss_email_change=1' )
    95         );
    96         ?></p>
     99        ); ?></p>
    97100    </div>
    98101
Note: See TracChangeset for help on using the changeset viewer.