Changeset 391 for trunk/bp-core/admin-mods/bp-core-account-tab.php
- Timestamp:
- 10/12/2008 08:19:04 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/admin-mods/bp-core-account-tab.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin-mods/bp-core-account-tab.php
r309 r391 3 3 $is_profile_page = true; 4 4 5 $title = $is_profile_page? __('Profile' ) : __('Edit User');5 $title = $is_profile_page? __('Profile', 'buddypress') : __('Edit User', 'buddypress'); 6 6 if ( current_user_can('edit_users') && !$is_profile_page ) 7 7 $submenu_file = 'users.php'; … … 21 21 $user_id = $current_user->ID; 22 22 } else { 23 wp_die(__('Invalid user ID.' ));23 wp_die(__('Invalid user ID.', 'buddypress')); 24 24 } 25 25 … … 42 42 43 43 if ( !current_user_can('edit_user', $user_id) ) 44 wp_die(__('You do not have permission to edit this user.' ));44 wp_die(__('You do not have permission to edit this user.', 'buddypress')); 45 45 46 46 if ( $is_profile_page ) { … … 64 64 65 65 if ( !current_user_can('edit_user', $user_id) ) 66 wp_die(__('You do not have permission to edit this user.' ));66 wp_die(__('You do not have permission to edit this user.', 'buddypress')); 67 67 68 68 ?> … … 70 70 <?php if ( isset($_GET['updated']) ) : ?> 71 71 <div id="message" class="updated fade"> 72 <p><strong><?php _e('User updated.' ) ?></strong></p>72 <p><strong><?php _e('User updated.', 'buddypress') ?></strong></p> 73 73 <?php if ( $wp_http_referer && !$is_profile_page ) : ?> 74 <p><a href="users.php"><?php _e('« Back to Authors and Users' ); ?></a></p>74 <p><a href="users.php"><?php _e('« Back to Authors and Users', 'buddypress'); ?></a></p> 75 75 <?php endif; ?> 76 76 </div> … … 88 88 89 89 <div class="wrap" id="profile-page"> 90 <h2><?php $is_profile_page? _e('Account Settings' ) : _e('Edit User Account Settings'); ?></h2>90 <h2><?php $is_profile_page? _e('Account Settings', 'buddypress') : _e('Edit User Account Settings', 'buddypress'); ?></h2> 91 91 92 92 <form name="profile" id="your-profile" action="admin.php?page=bp-core/admin-mods/bp-core-account-tab.php" method="post"> … … 101 101 </p> 102 102 103 <h3><?php _e('Personal Options' ); ?></h3>103 <h3><?php _e('Personal Options', 'buddypress'); ?></h3> 104 104 105 105 <table class="form-table"> 106 106 <?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?> 107 107 <tr> 108 <th scope="row"><?php _e('Visual Editor' )?></th>109 <td><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>108 <th scope="row"><?php _e('Visual Editor', 'buddypress')?></th> 109 <td><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', 'buddypress'); ?></label></td> 110 110 </tr> 111 111 <?php endif; ?> 112 112 <tr> 113 <th scope="row"><?php _e('Admin Color Scheme' )?></th>114 <td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme' )?></legend>113 <th scope="row"><?php _e('Admin Color Scheme', 'buddypress')?></th> 114 <td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme', 'buddypress')?></legend> 115 115 <?php 116 116 $current_color = get_user_option('admin_color', $user_id); … … 135 135 </table> 136 136 137 <h3><?php $is_profile_page? _e('Your Account Details' ) : _e('User Account Details'); ?></h3>137 <h3><?php $is_profile_page? _e('Your Account Details', 'buddypress') : _e('User Account Details', 'buddypress'); ?></h3> 138 138 139 139 <table class="form-table"> 140 140 <tr> 141 <th><label for="email">* <?php _e('Account Email' ) ?></label></th>142 <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> (<?php _e('Required' ); ?>)</td>141 <th><label for="email">* <?php _e('Account Email', 'buddypress') ?></label></th> 142 <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> (<?php _e('Required', 'buddypress'); ?>)</td> 143 143 </tr> 144 144 <?php … … 147 147 ?> 148 148 <tr> 149 <th><label for="pass1"><?php _e('New Password' ); ?></label></th>150 <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 />151 <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again." ); ?><br />149 <th><label for="pass1"><?php _e('New Password', 'buddypress'); ?></label></th> 150 <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.", 'buddypress'); ?><br /> 151 <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again.", 'buddypress'); ?><br /> 152 152 <?php if ( $is_profile_page ): ?> 153 <p><strong><?php _e('Password Strength' ); ?></strong></p>154 <div id="pass-strength-result"><?php _e('Too short' ); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&( in your password.'); ?>153 <p><strong><?php _e('Password Strength', 'buddypress'); ?></strong></p> 154 <div id="pass-strength-result"><?php _e('Too short', 'buddypress'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&( in your password.', 'buddypress'); ?> 155 155 <?php endif; ?> 156 156 </td> … … 171 171 <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> 172 172 <tr> 173 <th scope="row"><?php _e('Additional Capabilities' ) ?></th>173 <th scope="row"><?php _e('Additional Capabilities', 'buddypress') ?></th> 174 174 <td><?php 175 175 $output = ''; … … 189 189 <input type="hidden" name="action" value="update" /> 190 190 <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" /> 191 <input type="submit" value="<?php $is_profile_page? _e('Update Profile' ) : _e('Update User') ?>" name="submit" />191 <input type="submit" value="<?php $is_profile_page? _e('Update Profile', 'buddypress') : _e('Update User', 'buddypress') ?>" name="submit" /> 192 192 </p> 193 193 </form>
Note: See TracChangeset
for help on using the changeset viewer.