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/bp-core-avatars.php

    r373 r391  
    7777        <?php if ( !isset($_POST['slick_avatars_action']) && !isset($_GET['slick_avatars_action']) ) { ?>
    7878        <div class="wrap">
    79                 <h2><?php _e('Your Avatar') ?></h2>
     79                <h2><?php _e('Your Avatar', 'buddypress') ?></h2>
    8080               
    8181                <?php if ( $message ) { ?>
     
    8686                <?php } ?>
    8787
    88                 <p><?php _e('Your avatar will be used on your profile and throughout the site.') ?></p>
    89                 <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.') ?></p>
     88                <p><?php _e('Your avatar will be used on your profile and throughout the site.', 'buddypress') ?></p>
     89                <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.', 'buddypress') ?></p>
    9090               
    9191                <?php
     
    100100                $str = bp_core_get_avatar( get_current_user_id(), 1 );
    101101                if ( strlen($str) ) {
    102                         echo '<h3>' . __('This is your current avatar') . '</h3>';
     102                        echo '<h3>' . __('This is your current avatar', 'buddypress') . '</h3>';
    103103                        echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 1) . '</span>';
    104104                        echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 2) . '</span>';
     
    111111       
    112112                echo '<div class="wrap"><h2>';
    113                 _e('Your Avatar');
     113                _e('Your Avatar', 'buddypress');
    114114                echo '</h2>';
    115115               
     
    120120                // Set friendly error feedback.
    121121                $uploadErrors = array(
    122                         0 => __("There is no error, the file uploaded with success"),
    123                         1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini"),
    124                         2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"),
    125                         3 => __("The uploaded file was only partially uploaded"),
    126                         4 => __("No file was uploaded"),
    127                         6 => __("Missing a temporary folder")
     122                        0 => __("There is no error, the file uploaded with success", 'buddypress'),
     123                        1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini", 'buddypress'),
     124                        2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 'buddypress'),
     125                        3 => __("The uploaded file was only partially uploaded", 'buddypress'),
     126                        4 => __("No file was uploaded", 'buddypress'),
     127                        6 => __("Missing a temporary folder", 'buddypress')
    128128                );
    129129
     
    171171                // Store details to the DB and we're done
    172172                echo '<div class="wrap"><h2>';
    173                 _e('Your Avatar');
     173                _e('Your Avatar', 'buddypress');
    174174                echo '</h2>';
    175175               
    176                 echo '<p>' . __('Your new avatar was successfully created!') . '</p>';
     176                echo '<p>' . __('Your new avatar was successfully created!', 'buddypress') . '</p>';
    177177               
    178178                bp_core_avatar_save($result);
     
    191191               
    192192                unset($_GET['slick_avatars_action']);
    193                 $message = __('Avatar successfully removed.');
     193                $message = __('Avatar successfully removed.', 'buddypress');
    194194                bp_core_avatar_admin($message);
    195195               
     
    278278       
    279279        echo '<div id="avatar_v1">';
    280         echo '<h3>' . __('Main Avatar') . '</h3>';
    281         echo '<p>' . __('Please select the area of your photo you would like to use for your avatar') . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>';
     280        echo '<h3>' . __('Main Avatar', 'buddypress') . '</h3>';
     281        echo '<p>' . __('Please select the area of your photo you would like to use for your avatar', 'buddypress') . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>';
    282282       
    283283        // Canvas
     
    285285       
    286286        // Preview
    287         echo '<p class="crop-preview"><strong>' . __('Crop Preview') . '</strong></p>';
     287        echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>';
    288288        echo '<div id="crop-preview-v1" class="crop-preview"></div>';
    289289       
     
    299299        if (CORE_AVATAR_V2_W !== false && CORE_AVATAR_V2_H !== false) {
    300300                // Continue button (v1 => v2)
    301                 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop &amp; Continue') . '" onclick="cropAndContinue();" /></p>';
     301                echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop &amp; Continue', 'buddypress') . '" onclick="cropAndContinue();" /></p>';
    302302                echo '</div>';
    303303               
    304304                echo '<div id="avatar_v2" style="display: none">';
    305                 echo '<h3>' . __('Alternate Avatar') . '</h3>';
    306                 echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version') . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>';
     305                echo '<h3>' . __('Alternate Avatar', 'buddypress') . '</h3>';
     306                echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version', 'buddypress') . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>';
    307307               
    308308                // Canvas
     
    310310
    311311                // Preview
    312                 echo '<p class="crop-preview"><strong>' . __('Crop Preview') . '</strong></p>';
     312                echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>';
    313313                echo '<div id="crop-preview-v2" class="crop-preview"></div>';
    314314
     
    322322               
    323323                // Final button to process everything
    324                 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save') . '" /></p>';
     324                echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save', 'buddypress') . '" /></p>';
    325325                echo '</div>';
    326326        } else {
     
    329329               
    330330                // Final button to process everything
    331                 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save') . '" /></p>';
     331                echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save', 'buddypress') . '" /></p>';
    332332        }
    333333       
     
    458458function bp_core_ap_die( $msg ) {
    459459        echo '<p><strong>' . $msg . '</strong></p>';
    460         echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again') . '</a></p>';
     460        echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again', 'buddypress') . '</a></p>';
    461461        echo '</div>';
    462462        exit;
Note: See TracChangeset for help on using the changeset viewer.