Skip to:
Content

BuddyPress.org

Changeset 12019


Ignore:
Timestamp:
04/30/2018 11:49:22 PM (2 years ago)
Author:
boonebgorges
Message:

Nouveau: Improved language in groups AJAX callbacks.

See #7786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php

    r11903 r12019  
    282282
    283283    $bp->groups->invites_scope = 'members';
    284     $message = bp_nouveau_message_markup_wrapper( __( 'You can invite members using the + button, a new nav will appear to let you send your invites', 'buddypress' ), 'info' );
     284    $message = bp_nouveau_message_markup_wrapper( __( 'Select members to invite by clicking the + button. Once you\'ve made your selection, use the "Send Invites" nav item to continue.', 'buddypress' ), 'info' );
    285285
    286286    if ( 'friends' === $request['scope'] ) {
    287287        $request['user_id'] = bp_loggedin_user_id();
    288288        $bp->groups->invites_scope = 'friends';
    289         $message = bp_nouveau_message_markup_wrapper( __( 'You can invite friends using the + button, a new nav will appear to let you send your invites', 'buddypress' ), 'info' );
     289        $message = bp_nouveau_message_markup_wrapper( __( 'Select friends to invite by clicking the + button. Once you\'ve made your selection, use the "Send Invites" nav item to continue.', 'buddypress' ), 'info' );
    290290    }
    291291
     
    308308    if ( empty( $potential_invites->users ) ) {
    309309        $error = array(
    310             'feedback' => bp_nouveau_message_markup_wrapper( __( 'No members were found, try another filter.', 'buddypress' ), 'info' ),
     310            'feedback' => bp_nouveau_message_markup_wrapper( __( 'No members were found. Try another filter.', 'buddypress' ), 'info' ),
    311311            'type'     => 'info',
    312312        );
     
    314314        if ( 'friends' === $bp->groups->invites_scope ) {
    315315            $error = array(
    316                 'feedback' => bp_nouveau_message_markup_wrapper( __( 'All your friends are already members of this group or already received an invite to join this group or requested to join it.', 'buddypress' ), 'info' ),
     316                'feedback' => bp_nouveau_message_markup_wrapper( __( 'All your friends are already members of this group, or have already received an invite to join this group, or have requested to join it.', 'buddypress' ), 'info' ),
    317317                'type'     => 'info',
    318318            );
     
    349349
    350350    $response = array(
    351         'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be sent, please try again.', 'buddypress' ), 'error' ),
     351        'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be sent. Please try again.', 'buddypress' ), 'error' ),
    352352    );
    353353
     
    356356        wp_send_json_error(
    357357            array(
    358                 'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be sent, please try again.', 'buddypress' ), 'error' ),
     358                'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be sent. Please try again.', 'buddypress' ), 'error' ),
    359359                'type'     => 'error',
    360360            )
     
    438438        wp_send_json_error(
    439439            array(
    440                 'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be removed, please try again.', 'buddypress' ), 'error' ),
     440                'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invites could not be removed. Please try again.', 'buddypress' ), 'error' ),
    441441            )
    442442        );
     
    446446        wp_send_json_error(
    447447            array(
    448                 'feedback' => bp_nouveau_message_markup_wrapper( __( 'Too late, the user is now a member of the group.', 'buddypress' ), 'warning' ),
     448                'feedback' => bp_nouveau_message_markup_wrapper( __( 'Too late! The user is already a member of the group.', 'buddypress' ), 'warning' ),
    449449                'code'     => 1,
    450450            )
     
    456456        wp_send_json_error(
    457457            array(
    458                 'feedback' => bp_nouveau_message_markup_wrapper( __( 'Removing the invite for the user failed.', 'buddypress' ), 'error' ),
     458                'feedback' => bp_nouveau_message_markup_wrapper( __( 'Invite could not be removed successfully.', 'buddypress' ), 'error' ),
    459459                'code'     => 0,
    460460            )
Note: See TracChangeset for help on using the changeset viewer.