Making WordPress.org

Changeset 14134


Ignore:
Timestamp:
10/22/2024 12:12:31 AM (16 months ago)
Author:
tellyworth
Message:

wporg-login: fix text domain so all strings are translated.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php

    r14007 r14134  
    4040<h2 class="center"><?php
    4141    if ( $used_backup_code ) {
    42         _e( 'Backup Code used', 'wporg-login' );
     42        _e( 'Backup Code used', 'wporg' );
    4343    } else {
    44         _e( 'Account Backup Codes', 'wporg-login' );
     44        _e( 'Account Backup Codes', 'wporg' );
    4545    }
    4646?></h2>
     
    5050<p><?php
    5151    if ( $used_backup_code ) {
    52         _e( "You've logged in with a backup code.<br>These codes are intended to be used when you lose access to your authentication device.<br>Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg-login' );
     52        _e( "You've logged in with a backup code.<br>These codes are intended to be used when you lose access to your authentication device.<br>Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' );
    5353    } else {
    5454        if ( ! $codes_available ) {
    55             _e( 'You do not have any backup codes remaining.', 'wporg-login' );
     55            _e( 'You do not have any backup codes remaining.', 'wporg' );
    5656        } else {
    5757            printf(
     
    6060                    'You have %s backup codes remaining.',
    6161                    $codes_available,
    62                     'wporg-login'
     62                    'wporg'
    6363                ),
    6464                '<code>' . number_format_i18n( $codes_available ) . '</code>'
     
    7474
    7575<p><?php
    76     _e( 'If you run out of backup codes and no longer have access to your authentication device, you are at risk of being locked out of your WordPress.org account if we are unable to verify account ownership.', 'wporg-login' );
     76    _e( 'If you run out of backup codes and no longer have access to your authentication device, you are at risk of being locked out of your WordPress.org account if we are unable to verify account ownership.', 'wporg' );
    7777?></p>
    7878
    7979<p>&nbsp;</p>
    8080
    81 <p><a href="<?php echo esc_url( $account_settings_url ); ?>"><button class="button-primary"><?php _e( 'View my account settings', 'wporg-login' ); ?></button></a></p>
     81<p><a href="<?php echo esc_url( $account_settings_url ); ?>"><button class="button-primary"><?php _e( 'View my account settings', 'wporg' ); ?></button></a></p>
    8282
    8383<?php if ( $can_ignore ) { ?>
    8484    <p id="nav">
    85         <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do this later", 'wporg-login' ); ?></a>
     85        <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do this later", 'wporg' ); ?></a>
    8686    </p>
    8787<?php } ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php

    r14013 r14134  
    3131?>
    3232
    33 <h2 class="center"><?php _e( 'Two-Factor Authentication', 'wporg-login' ); ?></h2>
     33<h2 class="center"><?php _e( 'Two-Factor Authentication', 'wporg' ); ?></h2>
    3434
    3535<p>&nbsp;</p>
     
    3737<p><?php
    3838    if ( $requires_2fa ) {
    39         _e( 'WordPress.org now requires that your account be protected by two-factor authentication. Some capabilities may be limited until your account is protected.', 'wporg-login' );
     39        _e( 'WordPress.org now requires that your account be protected by two-factor authentication. Some capabilities may be limited until your account is protected.', 'wporg' );
    4040    } else {
    41         _e( "WordPress.org supports two-factor authentication and you'll soon be required to configure it on your account.", 'wporg-login' );
     41        _e( "WordPress.org supports two-factor authentication and you'll soon be required to configure it on your account.", 'wporg' );
    4242    }
    4343?></p>
     
    4545<p>&nbsp;</p>
    4646
    47 <p><?php printf( __( 'For more information on our two-factor options, please read the <a href="%s" target="_blank">documentation</a>.', 'wporg-login' ), 'https://make.wordpress.org/meta/handbook/tutorials-guides/configuring-two-factor-authentication/' ); ?></p>
     47<p><?php printf( __( 'For more information on our two-factor options, please read the <a href="%s" target="_blank">documentation</a>.', 'wporg' ), 'https://make.wordpress.org/meta/handbook/tutorials-guides/configuring-two-factor-authentication/' ); ?></p>
    4848
    4949<p>&nbsp;</p>
    5050
    51 <p><a href="<?php echo esc_url( add_query_arg( 'redirect_to', urlencode( $redirect_to ), get_onboarding_account_url() ) ); ?>"><button class="button-primary"><?php _e( "OK, I'll setup Two-Factor now.", 'wporg-login' ); ?></button></a></p>
     51<p><a href="<?php echo esc_url( add_query_arg( 'redirect_to', urlencode( $redirect_to ), get_onboarding_account_url() ) ); ?>"><button class="button-primary"><?php _e( "OK, I'll setup Two-Factor now.", 'wporg' ); ?></button></a></p>
    5252
    5353<?php if ( ! $requires_2fa ) { ?>
    5454<p id="nav">
    55     <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do it later", 'wporg-login' ); ?></a>
     55    <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do it later", 'wporg' ); ?></a>
    5656</p>
    5757<?php } ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/login.php

    r14098 r14134  
    2727    <p class="intro"><?php echo wporg_login_wporg_is_starpress(); ?></p>
    2828    <p class="login-username">
    29         <label for="user_login"><?php _e( 'Username or Email Address', 'wporg-login' ); ?></label>
     29        <label for="user_login"><?php _e( 'Username or Email Address', 'wporg' ); ?></label>
    3030        <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr( $username ); ?>" size="20" />
    3131    </p>
    3232    <p class="login-password">
    33         <label for="user_pass"><?php _e( 'Password', 'wporg-login' ); ?></label>
     33        <label for="user_pass"><?php _e( 'Password', 'wporg' ); ?></label>
    3434        <span class="wp-pwd" style="display:block;">
    3535            <input type="password" name="pwd" id="user_pass" class="input password-input" value="" size="20" />
    36             <button type="button" id="wp-hide-pw" class="button button-secondary wp-hide-pw hide-if-no-js" aria-label="<?php esc_attr_e( 'Show password', 'wporg-login' ); ?>">
     36            <button type="button" id="wp-hide-pw" class="button button-secondary wp-hide-pw hide-if-no-js" aria-label="<?php esc_attr_e( 'Show password', 'wporg' ); ?>">
    3737                <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
    3838            </button>
     
    4040    </p>
    4141    <?php do_action( 'login_form' ); ?>
    42     <p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember Me', 'wporg-login' ); ?></label></p>
     42    <p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember Me', 'wporg' ); ?></label></p>
    4343    <p class="login-submit">
    44         <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Log In', 'wporg-login' ); ?>" />
     44        <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Log In', 'wporg' ); ?>" />
    4545        <input type="hidden" name="redirect_to" value="<?php echo esc_url( $redirect ); ?>" />
    4646    </p>
     
    6767            if ( p.type === 'password' ) {
    6868                p.type = 'text';
    69                 h.ariaLabel = <?php echo json_encode( __( 'Hide password', 'wporg-login' ) ); ?>;
     69                h.ariaLabel = <?php echo json_encode( __( 'Hide password', 'wporg' ) ); ?>;
    7070                h.children[0].className = 'dashicons dashicons-hidden';
    7171            } else {
    7272                p.type = 'password';
    73                 h.ariaLabel = <?php echo json_encode( __( 'Show password', 'wporg-login' ) ); ?>;
     73                h.ariaLabel = <?php echo json_encode( __( 'Show password', 'wporg' ) ); ?>;
    7474                h.children[0].className = 'dashicons dashicons-visibility';
    7575            }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-create.php

    r14118 r14134  
    181181            </span>
    182182
    183             <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" aria-label="<?php esc_attr_e( 'Hide password', 'wporg-login' ); ?>">
     183            <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" aria-label="<?php esc_attr_e( 'Hide password', 'wporg' ); ?>">
    184184                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
    185185            </button>
Note: See TracChangeset for help on using the changeset viewer.