Make WordPress Core


Ignore:
Timestamp:
07/22/2015 08:49:55 PM (11 years ago)
Author:
markjaquith
Message:

Improve the "sessions" section strings.

fixes #33082
props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r33367 r33368  
    467467        <td>
    468468                <input class="hidden" value=" " /><!-- #24364 workaround -->
    469                 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Generate new password' ); ?></button>
     469                <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Generate Password' ); ?></button>
    470470                <div class="wp-pwd hide-if-js">
    471471                        <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
     
    502502if ( IS_PROFILE_PAGE && count( $sessions->get_all() ) === 1 ) : ?>
    503503        <tr class="user-sessions-wrap hide-if-no-js">
    504                 <th>&nbsp;</th>
     504                <th><?php _e( 'Sessions' ); ?></th>
    505505                <td aria-live="assertive">
    506                         <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
     506                        <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out Everywhere Else' ); ?></button></div>
    507507                        <p class="description">
    508508                                <?php _e( 'You are only logged in at this location.' ); ?>
     
    512512<?php elseif ( IS_PROFILE_PAGE && count( $sessions->get_all() ) > 1 ) : ?>
    513513        <tr class="user-sessions-wrap hide-if-no-js">
    514                 <th>&nbsp;</th>
     514                <th><?php _e( 'Sessions' ); ?></th>
    515515                <td aria-live="assertive">
    516                         <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Other Sessions' ); ?></button></div>
     516                        <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere Else' ); ?></button></div>
    517517                        <p class="description">
    518                                 <?php _e( 'Left your account logged in at a public computer? Lost your phone? This will log you out everywhere except your current browser.' ); ?>
     518                                <?php _e( 'Did you lose your phone or leave your account logged in at a public computer? You can log out everywhere else, and stay logged in here.' ); ?>
    519519                        </p>
    520520                </td>
     
    522522<?php elseif ( ! IS_PROFILE_PAGE && $sessions->get_all() ) : ?>
    523523        <tr class="user-sessions-wrap hide-if-no-js">
    524                 <th>&nbsp;</th>
     524                <th><?php _e( 'Sessions' ); ?></th>
    525525                <td>
    526                         <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out of All Sessions' ); ?></button></p>
     526                        <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere' ); ?></button></p>
    527527                        <p class="description">
    528528                                <?php
    529529                                /* translators: 1: User's display name. */
    530                                 printf( __( 'Log %s out of all sessions' ), $profileuser->display_name );
     530                                printf( __( 'Log %s out of all locations.' ), $profileuser->display_name );
    531531                                ?>
    532532                        </p>
Note: See TracChangeset for help on using the changeset viewer.