Make WordPress Core

Changeset 7235


Ignore:
Timestamp:
03/11/2008 08:54:08 AM (17 years ago)
Author:
westi
Message:

Validation and Translation fixes for the Profile page. Fixes #6152 and #6153 props johnbillion.

File:
1 edited

Legend:

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

    r7214 r7235  
    150150<table class="form-table">
    151151    <tr>
    152         <td colspan="2"><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></td>
     152        <td colspan="2"><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></label></td>
    153153    </tr>
    154154</table>
     
    165165<table class="form-table">
    166166    <tr>
    167         <th><label><?php _e('Username'); ?></label></th>
    168         <td><input type="text" name="user_login" id="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" /> Your username can not be changed</td>
     167        <th><label for="user_login"><?php _e('Username'); ?></label></th>
     168        <td><input type="text" name="user_login" id="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" /> <?php _e('Your username cannot be changed'); ?></td>
    169169    </tr>
    170170
    171171<?php if ( !$is_profile_page ): ?>
    172 <tr><th><label><?php _e('Role:') ?></label></th>
     172<tr><th><label for="role"><?php _e('Role:') ?></label></th>
    173173<?php
    174174// print_r($profileuser);
    175 echo '<td><select name="role">';
     175echo '<td><select name="role" id="role">';
    176176$role_list = '';
    177177$user_has_role = false;
     
    195195
    196196<tr>
    197     <th><label><?php _e('First name') ?></label></th>
    198     <td><input type="text" name="first_name" value="<?php echo $profileuser->first_name ?>" /></td>
    199 </tr>
    200 
    201 <tr>
    202     <th><label><?php _e('Last name') ?></label></th>
    203     <td><input type="text" name="last_name" value="<?php echo $profileuser->last_name ?>" /></td>
    204 </tr>
    205 
    206 <tr>
    207     <th><label><?php _e('Nickname') ?></label></th>
    208     <td><input type="text" name="nickname" value="<?php echo $profileuser->nickname ?>" /></td>
    209 </tr>
    210 
    211 <tr>
    212     <th><label><?php _e('Display name publicly&nbsp;as') ?> </label></th>
     197    <th><label for="first_name"><?php _e('First name') ?></label></th>
     198    <td><input type="text" name="first_name" id="first_name" value="<?php echo $profileuser->first_name ?>" /></td>
     199</tr>
     200
     201<tr>
     202    <th><label for="last_name"><?php _e('Last name') ?></label></th>
     203    <td><input type="text" name="last_name" id="last_name" value="<?php echo $profileuser->last_name ?>" /></td>
     204</tr>
     205
     206<tr>
     207    <th><label for="nickname"><?php _e('Nickname') ?></label></th>
     208    <td><input type="text" name="nickname" id="nickname" value="<?php echo $profileuser->nickname ?>" /></td>
     209</tr>
     210
     211<tr>
     212    <th><label for="display_name"><?php _e('Display name publicly&nbsp;as') ?></label></th>
    213213    <td>
    214         <select name="display_name">
     214        <select name="display_name" id="display_name">
    215215        <?php
    216216            $public_display = array();
     
    237237<table class="form-table">
    238238<tr>
    239     <th><label><?php _e('E-mail') ?></label></th>
    240     <td><input type="text" name="email" value="<?php echo $profileuser->user_email ?>" /> Required</td>
    241 </tr>
    242 
    243 <tr>
    244     <th><label><?php _e('Website') ?></label></th>
    245     <td><input type="text" name="url" value="<?php echo $profileuser->user_url ?>" /></td>
     239    <th><label for="email"><?php _e('E-mail') ?></label></th>
     240    <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> <?php _e('Required'); ?></td>
     241</tr>
     242
     243<tr>
     244    <th><label for="url"><?php _e('Website') ?></label></th>
     245    <td><input type="text" name="url" id="url" value="<?php echo $profileuser->user_url ?>" /></td>
    246246</th>
    247247
    248248<tr>
    249     <th><label><?php _e('AIM') ?></label></th>
    250     <td><input type="text" name="aim" value="<?php echo $profileuser->aim ?>" /></td>
    251 </tr>
    252 
    253 <tr>
    254     <th><label><?php _e('Yahoo IM') ?></label></th>
    255     <td><input type="text" name="yim" value="<?php echo $profileuser->yim ?>" /></td>
    256 </tr>
    257 
    258 <tr>
    259     <th><label><?php _e('Jabber / Google Talk') ?></label></th>
    260     <td><input type="text" name="jabber" value="<?php echo $profileuser->jabber ?>" /></td>
     249    <th><label for="aim"><?php _e('AIM') ?></label></th>
     250    <td><input type="text" name="aim" id="aim" value="<?php echo $profileuser->aim ?>" /></td>
     251</tr>
     252
     253<tr>
     254    <th><label for="yim"><?php _e('Yahoo IM') ?></label></th>
     255    <td><input type="text" name="yim" id="yim" value="<?php echo $profileuser->yim ?>" /></td>
     256</tr>
     257
     258<tr>
     259    <th><label for="jabber"><?php _e('Jabber / Google Talk') ?></label></th>
     260    <td><input type="text" name="jabber" id="jabber" value="<?php echo $profileuser->jabber ?>" /></td>
    261261</tr>
    262262</table>
     
    266266<table class="form-table">
    267267<tr>
    268     <th><label>Biographical Info</th>
    269     <td><textarea name="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></label></td>
     268    <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
     269    <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
    270270</tr>
    271271
     
    275275?>
    276276<tr>
    277     <th><label><?php _e('New Password:'); ?></label></th>
     277    <th><label for="pass1"><?php _e('New Password:'); ?></label></th>
    278278    <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
    279279        <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
Note: See TracChangeset for help on using the changeset viewer.