Making WordPress.org

Changeset 6493


Ignore:
Timestamp:
01/31/2018 11:21:10 PM (7 years ago)
Author:
obenland
Message:

Login: Use wporg textdomain for translations.

H/t ocean90.
See [6490], https://i18n.trac.wordpress.org/changeset/135039/.

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

Legend:

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

    r4470 r6493  
    99?>
    1010
    11 <p class="center singleline"><?php _e( 'Check your email for a confirmation link.', 'wporg-login' ); ?></p>
     11<p class="center singleline"><?php _e( 'Check your email for a confirmation link.', 'wporg' ); ?></p>
    1212
    1313<p id="nav">
    14     <a href="/"><?php _e( '&larr; Back to login', 'wporg-login' ); ?></a>
     14    <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a>
    1515</p>
    1616
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php

    r6395 r6493  
    3434            wp_die( $pre_register_error );
    3535        }
    36         wp_die( __( 'Registration Blocked. Please stop.', 'wporg-login' ) );
     36        wp_die( __( 'Registration Blocked. Please stop.', 'wporg' ) );
    3737    }
    3838
    3939    $user_id = wpmu_create_user( wp_slash( $user_login ), wp_generate_password(), wp_slash( $user_email ) );
    4040    if ( ! $user_id ) {
    41         wp_die( __( 'Error! Something went wrong with your registration. Try again?', 'wporg-login' ) );
     41        wp_die( __( 'Error! Something went wrong with your registration. Try again?', 'wporg' ) );
    4242    }
    4343
     
    5757    }
    5858
    59     $body  = sprintf( __( 'Hi %s,', 'wporg-login' ), $user_login ) . "\n\n";
    60     $body .= __( 'Welcome to WordPress.org! Your new account has been setup.', 'wporg-login' ) . "\n";
     59    $body  = sprintf( __( 'Hi %s,', 'wporg' ), $user_login ) . "\n\n";
     60    $body .= __( 'Welcome to WordPress.org! Your new account has been setup.', 'wporg' ) . "\n";
    6161    $body .= "\n";
    62     $body .= sprintf( __( 'Your username is: %s', 'wporg-login' ), $user_login ) . "\n";
    63     $body .= __( 'You can create a password at the following URL:', 'wporg-login' ) . "\n";
     62    $body .= sprintf( __( 'Your username is: %s', 'wporg' ), $user_login ) . "\n";
     63    $body .= __( 'You can create a password at the following URL:', 'wporg' ) . "\n";
    6464    $body .= home_url( "/register/confirm/{$user_login}/{$activation_key}/" );
    6565    $body .= "\n\n";
    66     $body .= __( '-- The WordPress.org Team', 'wporg-login' );
     66    $body .= __( '-- The WordPress.org Team', 'wporg' );
    6767
    6868    wp_mail(
    6969        $user_email,
    70         __( '[WordPress.org] Your new account', 'wporg-login' ),
     70        __( '[WordPress.org] Your new account', 'wporg' ),
    7171        $body,
    7272        array(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php

    r4536 r6493  
    3131        return [
    3232            'available' => false,
    33             'error' => __( 'That username is already in use.', 'wporg-login' ) . '<br>' . __( 'Is it yours? <a href="/lostpassword">Reset your password</a>.', 'wporg-plugins' ),
     33            'error' => __( 'That username is already in use.', 'wporg' ) . '<br>' . __( 'Is it yours? <a href="/lostpassword">Reset your password</a>.', 'wporg' ),
    3434            'avatar' => get_avatar( $user, 64 ),
    3535        ];
     
    5656        return [
    5757            'available' => false,
    58             'error' => __( 'That email address already has an account.', 'wporg-login' ) . '<br>' . __( 'Is it yours? <a href="/lostpassword">Reset your password</a>.', 'wporg-plugins' ),
     58            'error' => __( 'That email address already has an account.', 'wporg' ) . '<br>' . __( 'Is it yours? <a href="/lostpassword">Reset your password</a>.', 'wporg' ),
    5959            'avatar' => get_avatar( $user, 64 ),
    6060        ];
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r6397 r6493  
    1818 */
    1919function wporg_login_setup() {
    20     load_theme_textdomain( 'wporg-login' );
     20    load_theme_textdomain( 'wporg' );
    2121}
    2222add_action( 'after_setup_theme', 'wporg_login_setup' );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php

    r4470 r6493  
    1919
    2020<div id="login">
    21     <h1><a href="https://wordpress.org/" title="WordPress.org" tabindex="-1"><?php _e( 'WordPress.org Login' ); ?></a></h1>
     21    <h1><a href="https://wordpress.org/" title="WordPress.org" tabindex="-1"><?php _e( 'WordPress.org Login', 'wporg' ); ?></a></h1>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php

    r4470 r6493  
    99?>
    1010
    11 <p class="center"><?php _e( 'You are now logged out.', 'wporg-login' ); ?></p>
     11<p class="center"><?php _e( 'You are now logged out.', 'wporg' ); ?></p>
    1212
    1313<p id="nav">
    14     <a href="/"><?php _e( '&larr; Back to login', 'wporg-login' ); ?></a>
     14    <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a>
    1515</p>
    1616
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/login.php

    r4959 r6493  
    88get_header();
    99?>
    10 <p class="intro"><?php _e( 'Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.', 'wporg-login' ); ?></p>
     10<p class="intro"><?php _e( 'Log in to your WordPress.org account to contribute to WordPress, get help in the support forum, or rate and review themes and plugins.', 'wporg' ); ?></p>
    1111
    1212<?php wp_login_form(); ?>
    1313
    1414<p id="nav">
    15     <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg-login' ); ?>"><?php _e( 'Lost password?', 'wporg-login' ); ?></a> &nbsp; • &nbsp;
    16     <a href="<?php echo esc_url( wp_registration_url() ); ?>" title="<?php _e( 'Create an account', 'wporg-login' ); ?>"><?php _e( 'Create an account', 'wporg-login' ); ?></a>
     15    <a href="/lostpassword/" title="<?php _e( 'Password Lost and Found', 'wporg' ); ?>"><?php _e( 'Lost password?', 'wporg' ); ?></a> &nbsp; • &nbsp;
     16    <a href="<?php echo esc_url( wp_registration_url() ); ?>" title="<?php _e( 'Create an account', 'wporg' ); ?>"><?php _e( 'Create an account', 'wporg' ); ?></a>
    1717</p>
    1818
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/logout.php

    r4470 r6493  
    88get_header();
    99?>
    10 <p class="intro"><?php _e( 'You are attempting to log out of WordPress.org.', 'wporg-login' ); ?></p>
     10<p class="intro"><?php _e( 'You are attempting to log out of WordPress.org.', 'wporg' ); ?></p>
    1111
    1212<?php
    1313printf(
    1414    /* translators: %s: logout URL */
    15     __( 'Do you really want to <a href="%s">log out</a>?', 'wporg-login' ),
     15    __( 'Do you really want to <a href="%s">log out</a>?', 'wporg' ),
    1616    wp_logout_url( home_url( '/loggedout/ ' ) )
    1717);
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/lostpassword.php

    r4470 r6493  
    1010
    1111<form name="lostpasswordform" id="lostpasswordform" action="/wp-login.php?action=lostpassword" method="post">
    12     <p class="intro"><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg-login' ); ?></p>
     12    <p class="intro"><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg' ); ?></p>
    1313    <p>
    14         <label for="user_login"><?php _e( 'Username or Email', 'wporg-login' ); ?>
     14        <label for="user_login"><?php _e( 'Username or Email', 'wporg' ); ?>
    1515        <input type="text" name="user_login" id="user_login" value="" size="20"></label>
    1616    </p>
    1717    <input type="hidden" name="redirect_to" value="/checkemail/">
    1818    <p class="submit">
    19         <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e( 'Get new password', 'wporg-login' ); ?>">
     19        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e( 'Get new password', 'wporg' ); ?>">
    2020    </p>
    2121</form>
    2222<p id="nav">
    23     <a href="/"><?php _e( '&larr; Back to login', 'wporg-login' ); ?></a>
     23    <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a>
    2424</p>
    2525
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/register-profilefields.php

    r4953 r6493  
    1919?>
    2020<p class="login-website">
    21     <label for="user_website"><?php _e( 'Website', 'wporg-login' ); ?></label>
     21    <label for="user_website"><?php _e( 'Website', 'wporg' ); ?></label>
    2222    <input type="text" name="user_fields[url]" id="user_url" class="input" value="<?php echo esc_attr( $fields['url'] ); ?>" size="20" placeholder="https://" />
    2323</p>
    2424
    2525<p class="login-location">
    26     <label for="user_location"><?php _e( 'Location', 'wporg-login' ); ?></label>
     26    <label for="user_location"><?php _e( 'Location', 'wporg' ); ?></label>
    2727    <input type="text" name="user_fields[from]" id="user_location" class="input" value="<?php echo esc_attr( $fields['from'] ); ?>" size="20" />
    2828</p>
    2929
    3030<p class="login-occupation">
    31     <label for="user_occupation"><?php _e( 'Occupation', 'wporg-login' ); ?></label>
     31    <label for="user_occupation"><?php _e( 'Occupation', 'wporg' ); ?></label>
    3232    <input type="text" name="user_fields[occ]" id="user_occupation" class="input" value="<?php echo esc_attr( $fields['occ'] ); ?>" size="20" />
    3333</p>
    3434
    3535<p class="login-interests">
    36     <label for="user_interests"><?php _e( 'Interests', 'wporg-login' ); ?></label>
     36    <label for="user_interests"><?php _e( 'Interests', 'wporg' ); ?></label>
    3737    <input type="text" name="user_fields[interests]" id="user_interests" class="input" value="<?php echo esc_attr( $fields['interests'] ); ?>" size="20" />
    3838</p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register-confirm.php

    r6395 r6493  
    6666
    6767<p class="intro">
    68 <?php _e( 'Set your password and complete your WordPress.org Profile information.', 'wporg-login' ); ?>
     68<?php _e( 'Set your password and complete your WordPress.org Profile information.', 'wporg' ); ?>
    6969</p>
    7070
     
    7373        <div class="user-pass1-wrap">
    7474        <p>
    75             <label for="pass1"><?php _e( 'Password', 'wporg-login' ); ?></label>
     75            <label for="pass1"><?php _e( 'Password', 'wporg' ); ?></label>
    7676        </p>
    7777
     
    8080                <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="user_pass" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
    8181            </span>
    82             <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator', 'wporg-login' ); ?></div>
     82            <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator', 'wporg' ); ?></div>
    8383        </div>
    8484    </div>
    8585
    86 <!--    <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ &amp; ).', 'wporg-login' ); ?></p> -->
     86<!--    <p class="description indicator-hint"><?php _e( 'Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ &amp; ).', 'wporg' ); ?></p> -->
    8787
    8888    <?php include __DIR__ . '/partials/register-profilefields.php'; ?>
    8989
    9090    <p class="login-submit">
    91         <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg-login' ); ?>" />
     91        <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg' ); ?>" />
    9292    </p>
    9393
     
    9595
    9696<p id="nav">
    97     <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a>
     97    <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
    9898</p>
    9999
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register-profile.php

    r4952 r6493  
    3535        printf(
    3636            /* translators: %s Email address */
    37             __( 'Please check your email %s for a confirmation link to set your password.', 'wporg-login' ),
     37            __( 'Please check your email %s for a confirmation link to set your password.', 'wporg' ),
    3838            '<code>' . esc_html( wp_get_current_user()->user_email ) . '</code>'
    3939        );
     
    4242
    4343<p class="intro">
    44 <?php _e( 'Complete your WordPress.org Profile information.', 'wporg-login' ); ?>
     44<?php _e( 'Complete your WordPress.org Profile information.', 'wporg' ); ?>
    4545</p>
    4646
     
    5050
    5151    <p class="login-submit">
    52         <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Save Profile Information', 'wporg-login' ); ?>" />
     52        <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Save Profile Information', 'wporg' ); ?>" />
    5353    </p>
    5454
     
    5656
    5757<p id="nav">
    58     <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a>
     58    <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
    5959</p>
    6060
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php

    r5143 r6493  
    4040?>
    4141
    42 <p class="intro"><?php _e( 'Create a WordPress.org account to start contributing to WordPress, get help in the support forums, or rate and review themes and plugins.', 'wporg-login' ); ?></p>
     42<p class="intro"><?php _e( 'Create a WordPress.org account to start contributing to WordPress, get help in the support forums, or rate and review themes and plugins.', 'wporg' ); ?></p>
    4343
    4444<form name="registerform" id="registerform" action="/register" method="post">
    4545
    4646    <p class="login-username">
    47         <label for="user_login"><?php _e( 'Username', 'wporg-login' ); ?></label>
     47        <label for="user_login"><?php _e( 'Username', 'wporg' ); ?></label>
    4848        <input type="text" name="user_login" id="user_login" class="input <?php if ( $error_user_login ) echo 'error'; ?>" value="<?php echo esc_attr( $user_login ) ?>" size="20" maxlength="60" />
    49         <span class="small"><?php _e( 'Required. Only lower case letters (a-z) and numbers (0-9) are allowed.', 'wporg-login' ); ?></span>
     49        <span class="small"><?php _e( 'Required. Only lower case letters (a-z) and numbers (0-9) are allowed.', 'wporg' ); ?></span>
    5050    </p>
    5151    <?php
     
    6161
    6262    <p class="login-email">
    63         <label for="user_email"><?php _e( 'Email', 'wporg-login' ); ?></label>
     63        <label for="user_email"><?php _e( 'Email', 'wporg' ); ?></label>
    6464        <input type="email" name="user_email" id="user_email" class="input <?php if ( $error_user_email ) echo 'error'; ?>" value="<?php echo esc_attr( $user_email ) ?>" size="20" maxlength="100" />
    65         <span class="small"><?php _e( 'Required. Your password will be emailed here.', 'wporg-login' ); ?></span>
     65        <span class="small"><?php _e( 'Required. Your password will be emailed here.', 'wporg' ); ?></span>
    6666    </p>
    6767    <?php
     
    7979        <label>
    8080            <input name="user_mailinglist" type="checkbox" id="user_mailinglist" value="true" <?php checked( $user_mailinglist, true ); ?>>
    81             <?php _e( 'Subscribe to WordPress Announcements mailing list (a few messages a year)', 'wporg-login' ); ?>
     81            <?php _e( 'Subscribe to WordPress Announcements mailing list (a few messages a year)', 'wporg' ); ?>
    8282        </label>
    8383    </p>
    8484    <?php
    8585        if ( $error_recapcha_status ) {
    86             echo '<div class="message error"><p>' . __( 'Please try again.', 'wporg-login' ) . '</p></div>';
     86            echo '<div class="message error"><p>' . __( 'Please try again.', 'wporg' ) . '</p></div>';
    8787        }
    8888    ?>
    8989
    9090    <p class="login-submit">
    91         <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY  ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg-login' ); ?>" />
     91        <input data-sitekey="<?php echo esc_attr( RECAPTCHA_INVIS_PUBKEY  ); ?>" data-callback='onSubmit' type="submit" name="wp-submit" id="wp-submit" class="g-recaptcha button button-primary" value="<?php esc_attr_e( 'Create Account', 'wporg' ); ?>" />
    9292    </p>
    9393
     
    9595
    9696<p id="nav">
    97     <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg-login' ); ?>"><?php _e( 'Already have an account?', 'wporg-login' ); ?></a> &nbsp; • &nbsp;
    98     <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a>
     97    <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg' ); ?>"><?php _e( 'Already have an account?', 'wporg' ); ?></a> &nbsp; • &nbsp;
     98    <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
    9999
    100100</p>
Note: See TracChangeset for help on using the changeset viewer.