Make WordPress Core

Ticket #24982: 24982.diff

File 24982.diff, 3.9 KB (added by DrewAPicture, 11 years ago)
  • wp-admin/css/install.css

     
    215215}
    216216
    217217.message {
    218         border: 1px solid #e6db55;
     218        border: 1px solid #F04040;
    219219        padding: 0.3em 0.6em;
    220220        margin: 5px 0 15px;
    221         background-color: #ffffe0;
     221        background-color: #FFA0A0;
    222222}
    223223
    224224/* install-rtl */
  • wp-admin/install.php

     
    9191
    9292        if ( ! is_null( $error ) ) {
    9393?>
    94 <p class="message"><?php printf( __( '<strong>ERROR</strong>: %s' ), $error ); ?></p>
     94<p class="message"><?php echo esc_html( $error ); ?></p>
    9595<?php } ?>
    9696<form id="setup" method="post" action="install.php?step=2">
    9797        <table class="form-table">
     
    100100                        <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td>
    101101                </tr>
    102102                <tr>
    103                         <th scope="row"><label for="user_login"><?php _e('Username'); ?></label></th>
     103                        <th scope="row"><label for="user_login"><?php _ex( 'Username&#42;', 'required' ); ?></label></th>
    104104                        <td>
    105105                        <?php
    106106                        if ( $user_table ) {
     
    112112                        } ?>
    113113                        </td>
    114114                </tr>
     115                <tr>
     116                        <th scope="row"><label for="admin_email"><?php _e( 'Your Email&#42;' ); ?></label></th>
     117                        <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />
     118                                <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
     119                </tr>
    115120                <?php if ( ! $user_table ) : ?>
    116121                <tr>
    117122                        <th scope="row">
     
    127132                </tr>
    128133                <?php endif; ?>
    129134                <tr>
    130                         <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>
    131                         <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />
    132                         <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
    133                 </tr>
    134                 <tr>
    135135                        <th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th>
    136136                        <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site.' ); ?></label></td>
    137137                </tr>
     
    199199                $error = false;
    200200                if ( empty( $user_name ) ) {
    201201                        // TODO: poka-yoke
    202                         display_setup_form( __('you must provide a valid username.') );
     202                        display_setup_form( __( 'Please provide a valid username.' ) );
    203203                        $error = true;
    204204                } elseif ( $user_name != sanitize_user( $user_name, true ) ) {
    205                         display_setup_form( __('the username you provided has invalid characters.') );
     205                        display_setup_form( __( 'The username you provided has invalid characters.' ) );
    206206                        $error = true;
    207207                } elseif ( $admin_password != $admin_password_check ) {
    208208                        // TODO: poka-yoke
    209                         display_setup_form( __( 'your passwords do not match. Please try again' ) );
     209                        display_setup_form( __( 'Your passwords do not match. Please try again' ) );
    210210                        $error = true;
    211211                } else if ( empty( $admin_email ) ) {
    212212                        // TODO: poka-yoke
    213                         display_setup_form( __( 'you must provide an e-mail address.' ) );
     213                        display_setup_form( __( 'You must provide an email address.' ) );
    214214                        $error = true;
    215215                } elseif ( ! is_email( $admin_email ) ) {
    216216                        // TODO: poka-yoke
    217                         display_setup_form( __( 'that isn&#8217;t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>' ) );
     217                        display_setup_form( __( 'Sorry, that isn&#8217;t a valid email address. Email addresses look like: <code>username@example.com</code>' ) );
    218218                        $error = true;
    219219                }
    220220
     
    230230
    231231<table class="form-table install-success">
    232232        <tr>
    233                 <th><?php _e( 'Username' ); ?></th>
     233                <th><?php _ex( 'Username', 'successful install' ); ?></th>
    234234                <td><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></td>
    235235        </tr>
    236236        <tr>