Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/12/2008 08:19:04 PM (18 years ago)
Author:
apeatling
Message:

Added the 'buddypress' textdomain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin-mods/bp-core-account-tab.php

    r309 r391  
    33$is_profile_page = true;
    44
    5 $title = $is_profile_page? __('Profile') : __('Edit User');
     5$title = $is_profile_page? __('Profile', 'buddypress') : __('Edit User', 'buddypress');
    66if ( current_user_can('edit_users') && !$is_profile_page )
    77    $submenu_file = 'users.php';
     
    2121        $user_id = $current_user->ID;
    2222    } else {
    23         wp_die(__('Invalid user ID.'));
     23        wp_die(__('Invalid user ID.', 'buddypress'));
    2424    }
    2525
     
    4242
    4343if ( !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'));
    4545
    4646if ( $is_profile_page ) {
     
    6464
    6565if ( !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'));
    6767
    6868?>
     
    7070<?php if ( isset($_GET['updated']) ) : ?>
    7171<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>
    7373    <?php if ( $wp_http_referer && !$is_profile_page ) : ?>
    74     <p><a href="users.php"><?php _e('&laquo; Back to Authors and Users'); ?></a></p>
     74    <p><a href="users.php"><?php _e('&laquo; Back to Authors and Users', 'buddypress'); ?></a></p>
    7575    <?php endif; ?>
    7676</div>
     
    8888
    8989<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>
    9191
    9292<form name="profile" id="your-profile" action="admin.php?page=bp-core/admin-mods/bp-core-account-tab.php" method="post">
     
    101101</p>
    102102
    103 <h3><?php _e('Personal Options'); ?></h3>
     103<h3><?php _e('Personal Options', 'buddypress'); ?></h3>
    104104
    105105<table class="form-table">
    106106<?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?>
    107107    <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>
    110110    </tr>
    111111<?php endif; ?>
    112112<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>
    115115<?php
    116116$current_color = get_user_option('admin_color', $user_id);
     
    135135</table>
    136136
    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>
    138138
    139139<table class="form-table">
    140140<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>
    143143</tr>
    144144<?php
     
    147147?>
    148148<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 />
    152152        <?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 !"?$%^&amp;( 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 !"?$%^&amp;( in your password.', 'buddypress'); ?>
    155155        <?php endif; ?>
    156156    </td>
     
    171171    <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
    172172        <tr>
    173             <th scope="row"><?php _e('Additional Capabilities') ?></th>
     173            <th scope="row"><?php _e('Additional Capabilities', 'buddypress') ?></th>
    174174            <td><?php
    175175            $output = '';
     
    189189    <input type="hidden" name="action" value="update" />
    190190    <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" />
    192192 </p>
    193193</form>
Note: See TracChangeset for help on using the changeset viewer.