Skip to:
Content

BuddyPress.org

Changeset 8678


Ignore:
Timestamp:
07/23/2014 06:40:28 PM (9 years ago)
Author:
djpaul
Message:

More "Avatar" to "Profile Photo" renaming.

See #5758 and r8677

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-actions.php

    r8605 r8678  
    307307
    308308            if ( !bp_core_avatar_handle_crop( array( 'object' => 'group', 'avatar_dir' => 'group-avatars', 'item_id' => $bp->groups->current_group->id, 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) )
    309                 bp_core_add_message( __( 'There was an error saving the group avatar, please try uploading again.', 'buddypress' ), 'error' );
     309                bp_core_add_message( __( 'There was an error saving the group profile photo, please try uploading again.', 'buddypress' ), 'error' );
    310310            else
    311                 bp_core_add_message( __( 'The group avatar was uploaded successfully!', 'buddypress' ) );
     311                bp_core_add_message( __( 'The group profile photo was uploaded successfully!', 'buddypress' ) );
    312312        }
    313313    }
  • trunk/src/bp-groups/bp-groups-screens.php

    r8662 r8678  
    647647
    648648        if ( bp_core_delete_existing_avatar( array( 'item_id' => $bp->groups->current_group->id, 'object' => 'group' ) ) ) {
    649             bp_core_add_message( __( 'Your avatar was deleted successfully!', 'buddypress' ) );
     649            bp_core_add_message( __( 'The group profile photo was deleted successfully!', 'buddypress' ) );
    650650        } else {
    651             bp_core_add_message( __( 'There was a problem deleting that avatar; please try again.', 'buddypress' ), 'error' );
     651            bp_core_add_message( __( 'There was a problem deleting the group profile photo; please try again.', 'buddypress' ), 'error' );
    652652        }
    653653    }
     
    692692
    693693        if ( !bp_core_avatar_handle_crop( $args ) ) {
    694             bp_core_add_message( __( 'There was a problem cropping the avatar.', 'buddypress' ), 'error' );
     694            bp_core_add_message( __( 'There was a problem cropping the group profile photo.', 'buddypress' ), 'error' );
    695695        } else {
    696             bp_core_add_message( __( 'The new group avatar was uploaded successfully.', 'buddypress' ) );
     696            bp_core_add_message( __( 'The new group profile photo was uploaded successfully.', 'buddypress' ) );
    697697        }
    698698    }
  • trunk/src/bp-groups/bp-groups-template.php

    r8677 r8678  
    800800            'class'  => 'avatar',
    801801            'id'     => false,
    802             'alt'    => sprintf( __( 'Group creator avatar of %s', 'buddypress' ),  bp_core_get_user_displayname( $group->creator_id ) )
     802            'alt'    => sprintf( __( 'Group creator profile photo of %s', 'buddypress' ),  bp_core_get_user_displayname( $group->creator_id ) )
    803803        );
    804804
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r8677 r8678  
    140140
    141141                    <div class="main-column">
    142                         <p><?php _e( "Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
     142                        <p><?php _e( "Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    143143
    144144                        <p>
     
    148148                        </p>
    149149
    150                         <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
     150                        <p><?php _e( 'To skip the group profile photo upload process, hit the "Next Step" button.', 'buddypress' ); ?></p>
    151151                    </div><!-- .main-column -->
    152152
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r8677 r8678  
    125125    <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    126126
    127             <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
     127            <p><?php _e("Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    128128
    129129            <p>
     
    135135            <?php if ( bp_get_group_has_avatar() ) : ?>
    136136
    137                 <p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    138 
    139                 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __( 'Delete Profile Photo', 'buddypress' ), 'link_text' => __( 'Delete Profile Photo', 'buddypress' ) ) ); ?>
     137                <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>
     138
     139                <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __( 'Delete Group Profile Photo', 'buddypress' ), 'link_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?>
    140140
    141141            <?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php

    r8677 r8678  
    55<?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
    66
    7     <p><?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></p>
     7    <p><?php _e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="http://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></p>
    88
    99    <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data">
     
    2121
    2222            <?php if ( bp_get_user_has_avatar() ) : ?>
    23                 <p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
     23                <p><?php _e( "If you'd like to delete your current profile phot but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p>
    2424                <p><a class="button edit" href="<?php bp_avatar_delete_link(); ?>" title="<?php esc_attr_e( 'Delete Profile Photo', 'buddypress' ); ?>"><?php _e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>
    2525            <?php endif; ?>
     
    5353<?php else : ?>
    5454
    55     <p><?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
     55    <p><?php _e( 'Your profile photo will be used on your profile and throughout the site. To change your profile photo, please create an account with <a href="http://gravatar.com">Gravatar</a> using the same email address as you used to register with this site.', 'buddypress' ); ?></p>
    5656
    5757<?php endif; ?>
  • trunk/src/bp-xprofile/bp-xprofile-actions.php

    r8662 r8678  
    3737
    3838    if ( bp_core_delete_existing_avatar( array( 'item_id' => bp_displayed_user_id() ) ) )
    39         bp_core_add_message( __( 'Your avatar was deleted successfully!', 'buddypress' ) );
     39        bp_core_add_message( __( 'Your profile photo was deleted successfully!', 'buddypress' ) );
    4040    else
    41         bp_core_add_message( __( 'There was a problem deleting that avatar; please try again.', 'buddypress' ), 'error' );
     41        bp_core_add_message( __( 'There was a problem deleting your profile photo; please try again.', 'buddypress' ), 'error' );
    4242
    4343    bp_core_redirect( wp_get_referer() );
  • trunk/src/bp-xprofile/bp-xprofile-screens.php

    r8662 r8678  
    210210
    211211        if ( ! bp_core_avatar_handle_crop( $args ) ) {
    212             bp_core_add_message( __( 'There was a problem cropping your avatar.', 'buddypress' ), 'error' );
     212            bp_core_add_message( __( 'There was a problem cropping your profile photo.', 'buddypress' ), 'error' );
    213213        } else {
    214214            do_action( 'xprofile_avatar_uploaded' );
    215             bp_core_add_message( __( 'Your new avatar was uploaded successfully.', 'buddypress' ) );
     215            bp_core_add_message( __( 'Your new profile photo was uploaded successfully.', 'buddypress' ) );
    216216            bp_core_redirect( bp_displayed_user_domain() );
    217217        }
Note: See TracChangeset for help on using the changeset viewer.