Make WordPress Core

Changeset 7294


Ignore:
Timestamp:
03/14/2008 06:22:19 PM (18 years ago)
Author:
ryan
Message:

install.php i18n and html fixes. Props nbachiyski. fixes #6221

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r7199 r7294  
    4848    <table class="form-table">
    4949        <tr>
    50             <th scope="row"><?php _e('Blog Title'); ?></th>
     50            <th scope="row"><label for="weblog_title"><?php _e('Blog Title'); ?></label></th>
    5151            <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
    5252        </tr>
    5353        <tr>
    54             <th><?php _e('Your E-mail'); ?></th>
     54            <th scope="row"><label for="admin_email"><?php _e('Your E-mail'); ?></label></th>
    5555            <td><input name="admin_email" type="text" id="admin_email" size="25" /><br />
    5656            <?php _e('Double-check your email address before continuing.'); ?>
     
    7777        if (empty($admin_email)) {
    7878            // TODO: poka-yoke
    79             die(__("<p><strong>ERROR</strong>: you must provide an e-mail address.</p>"));
     79            die('<p>'.__("<strong>ERROR</strong>: you must provide an e-mail address.").'</p>');
    8080        } else if (!is_email($admin_email)) {
    8181            // TODO: poka-yoke
    82             die(__('<strong>ERROR</strong>: that isn\'t a valid e-mail address.  E-mail addresses look like: <code>username@example.com</code>'));
     82            die('<p>'.__('<strong>ERROR</strong>: that isn&#8217;t a valid e-mail address.  E-mail addresses look like: <code>username@example.com</code>').'</p>');
    8383        }
    8484
     
    100100        <th><?php _e('Password'); ?></th>
    101101        <td><code><?php echo $password; ?></code><br />
    102             <?php _e('<p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.</p>'); ?></td>
     102            <?php echo '<p>'.__('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.').'</p>'; ?></td>
    103103    </tr>
    104104</table>
     
    110110}
    111111?>
     112<script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script>
    112113</body>
    113114</html>
Note: See TracChangeset for help on using the changeset viewer.