diff --git a/src/bp-activity/bp-activity-actions.php b/src/bp-activity/bp-activity-actions.php
index f8c5d52..d8e4c23 100644
a
|
b
|
function bp_activity_action_sitewide_feed() { |
437 | 437 | 'id' => 'sitewide', |
438 | 438 | |
439 | 439 | /* translators: Sitewide activity RSS title - "[Site Name] | Site Wide Activity" */ |
440 | | 'title' => sprintf( __( '%s | Site Wide Activity', 'buddypress' ), bp_get_site_name() ), |
| 440 | 'title' => sprintf( __( '%s | Site-Wide Activity', 'buddypress' ), bp_get_site_name() ), |
441 | 441 | |
442 | 442 | 'link' => bp_get_activity_directory_permalink(), |
443 | 443 | 'description' => __( 'Activity feed for the entire site.', 'buddypress' ), |
… |
… |
function bp_activity_action_my_groups_feed() { |
540 | 540 | 'title' => sprintf( __( '%1$s | %2$s | Group Activity', 'buddypress' ), bp_get_site_name(), bp_get_displayed_user_fullname() ), |
541 | 541 | |
542 | 542 | 'link' => trailingslashit( bp_displayed_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() ), |
543 | | 'description' => sprintf( __( "Public group activity feed of which %s is a member of.", 'buddypress' ), bp_get_displayed_user_fullname() ), |
| 543 | 'description' => sprintf( __( "Public group activity feed of which %s is a member.", 'buddypress' ), bp_get_displayed_user_fullname() ), |
544 | 544 | 'activity_args' => array( |
545 | 545 | 'object' => buddypress()->groups->id, |
546 | 546 | 'primary_id' => $group_ids, |
diff --git a/src/bp-activity/bp-activity-loader.php b/src/bp-activity/bp-activity-loader.php
index 0f68f91..c6fc540 100644
a
|
b
|
class BP_Activity_Component extends BP_Component { |
106 | 106 | 'slug' => BP_ACTIVITY_SLUG, |
107 | 107 | 'root_slug' => isset( $bp->pages->activity->slug ) ? $bp->pages->activity->slug : BP_ACTIVITY_SLUG, |
108 | 108 | 'has_directory' => true, |
109 | | 'directory_title' => _x( 'Sitewide Activity', 'component directory title', 'buddypress' ), |
| 109 | 'directory_title' => _x( 'Site-Wide Activity', 'component directory title', 'buddypress' ), |
110 | 110 | 'notification_callback' => 'bp_activity_format_notifications', |
111 | 111 | 'search_string' => __( 'Search Activity...', 'buddypress' ), |
112 | 112 | 'global_tables' => $global_tables, |
diff --git a/src/bp-blogs/bp-blogs-loader.php b/src/bp-blogs/bp-blogs-loader.php
index c392d32..c68710d 100644
a
|
b
|
class BP_Blogs_Component extends BP_Component { |
22 | 22 | public function __construct() { |
23 | 23 | parent::start( |
24 | 24 | 'blogs', |
25 | | __( 'Site Tracking', 'buddypress' ), |
| 25 | __( 'Site Directory', 'buddypress' ), |
26 | 26 | buddypress()->plugin_dir, |
27 | 27 | array( |
28 | 28 | 'adminbar_myaccount_order' => 30 |
diff --git a/src/bp-blogs/bp-blogs-template.php b/src/bp-blogs/bp-blogs-template.php
index e8c2a90..ef8045c 100644
a
|
b
|
function bp_show_blog_signup_form($blogname = '', $blog_title = '', $errors = '' |
948 | 948 | $errors = $filtered_results['errors']; |
949 | 949 | |
950 | 950 | if ( $errors->get_error_code() ) { |
951 | | echo "<p>" . __('There was a problem, please correct the form below and try again.', 'buddypress') . "</p>"; |
| 951 | echo "<p>" . __('There was a problem; please correct the form below and try again.', 'buddypress') . "</p>"; |
952 | 952 | } |
953 | 953 | ?> |
954 | 954 | <p><?php printf(__("By filling out the form below, you can <strong>add a site to your account</strong>. There is no limit to the number of sites that you can have, so create to your heart's content, but blog responsibly!", 'buddypress'), $current_user->display_name) ?></p> |
diff --git a/src/bp-groups/bp-groups-functions.php b/src/bp-groups/bp-groups-functions.php
index 971f8b1..92d8c9f 100644
a
|
b
|
function groups_leave_group( $group_id, $user_id = 0 ) { |
305 | 305 | // Don't let single admins leave the group. |
306 | 306 | if ( count( groups_get_group_admins( $group_id ) ) < 2 ) { |
307 | 307 | if ( groups_is_user_admin( $user_id, $group_id ) ) { |
308 | | bp_core_add_message( __( 'As the only Admin, you cannot leave the group.', 'buddypress' ), 'error' ); |
| 308 | bp_core_add_message( __( 'As the only admin, you cannot leave the group.', 'buddypress' ), 'error' ); |
309 | 309 | return false; |
310 | 310 | } |
311 | 311 | } |
diff --git a/src/bp-groups/bp-groups-screens.php b/src/bp-groups/bp-groups-screens.php
index c2feff5..576a378 100644
a
|
b
|
function groups_screen_group_request_membership() { |
505 | 505 | if ( groups_accept_invite( bp_loggedin_user_id(), $bp->groups->current_group->id ) ) |
506 | 506 | bp_core_add_message( __( 'Group invite accepted', 'buddypress' ) ); |
507 | 507 | else |
508 | | bp_core_add_message( __( 'There was an error accepting the group invitation, please try again.', 'buddypress' ), 'error' ); |
| 508 | bp_core_add_message( __( 'There was an error accepting the group invitation; please try again.', 'buddypress' ), 'error' ); |
509 | 509 | bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); |
510 | 510 | } |
511 | 511 | |
… |
… |
function groups_screen_group_request_membership() { |
517 | 517 | return false; |
518 | 518 | |
519 | 519 | if ( !groups_send_membership_request( bp_loggedin_user_id(), $bp->groups->current_group->id ) ) { |
520 | | bp_core_add_message( __( 'There was an error sending your group membership request, please try again.', 'buddypress' ), 'error' ); |
| 520 | bp_core_add_message( __( 'There was an error sending your group membership request; please try again.', 'buddypress' ), 'error' ); |
521 | 521 | } else { |
522 | 522 | bp_core_add_message( __( 'Your membership request was sent to the group administrator successfully. You will be notified when the group administrator responds to your request.', 'buddypress' ) ); |
523 | 523 | } |
… |
… |
function groups_screen_group_admin_edit_details() { |
568 | 568 | $group_notify_members = isset( $_POST['group-notify-members'] ) ? (int) $_POST['group-notify-members'] : 0; |
569 | 569 | |
570 | 570 | if ( !groups_edit_base_group_details( $_POST['group-id'], $_POST['group-name'], $_POST['group-desc'], $group_notify_members ) ) { |
571 | | bp_core_add_message( __( 'There was an error updating group details, please try again.', 'buddypress' ), 'error' ); |
| 571 | bp_core_add_message( __( 'There was an error updating group details; please try again.', 'buddypress' ), 'error' ); |
572 | 572 | } else { |
573 | 573 | bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) ); |
574 | 574 | } |
… |
… |
function groups_screen_group_admin_settings() { |
612 | 612 | return false; |
613 | 613 | |
614 | 614 | if ( !groups_edit_group_settings( $_POST['group-id'], $enable_forum, $status, $invite_status ) ) { |
615 | | bp_core_add_message( __( 'There was an error updating group settings, please try again.', 'buddypress' ), 'error' ); |
| 615 | bp_core_add_message( __( 'There was an error updating group settings; please try again.', 'buddypress' ), 'error' ); |
616 | 616 | } else { |
617 | 617 | bp_core_add_message( __( 'Group settings were successfully updated.', 'buddypress' ) ); |
618 | 618 | } |
… |
… |
function groups_screen_group_admin_avatar() { |
648 | 648 | if ( bp_core_delete_existing_avatar( array( 'item_id' => $bp->groups->current_group->id, 'object' => 'group' ) ) ) { |
649 | 649 | bp_core_add_message( __( 'Your avatar was deleted successfully!', 'buddypress' ) ); |
650 | 650 | } 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 that avatar; please try again.', 'buddypress' ), 'error' ); |
652 | 652 | } |
653 | 653 | } |
654 | 654 | |
… |
… |
function groups_screen_group_admin_manage_members() { |
754 | 754 | |
755 | 755 | // Demote a user. |
756 | 756 | elseif ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) ) |
757 | | bp_core_add_message( __( 'There was an error when demoting that user, please try again', 'buddypress' ), 'error' ); |
| 757 | bp_core_add_message( __( 'There was an error when demoting that user; please try again', 'buddypress' ), 'error' ); |
758 | 758 | else |
759 | 759 | bp_core_add_message( __( 'User demoted successfully', 'buddypress' ) ); |
760 | 760 | |
… |
… |
function groups_screen_group_admin_manage_members() { |
772 | 772 | |
773 | 773 | // Ban a user. |
774 | 774 | if ( !groups_ban_member( $user_id, $bp->groups->current_group->id ) ) |
775 | | bp_core_add_message( __( 'There was an error when banning that user, please try again', 'buddypress' ), 'error' ); |
| 775 | bp_core_add_message( __( 'There was an error when banning that user; please try again', 'buddypress' ), 'error' ); |
776 | 776 | else |
777 | 777 | bp_core_add_message( __( 'User banned successfully', 'buddypress' ) ); |
778 | 778 | |
… |
… |
function groups_screen_group_admin_manage_members() { |
808 | 808 | |
809 | 809 | // Remove a user. |
810 | 810 | if ( !groups_remove_member( $user_id, $bp->groups->current_group->id ) ) |
811 | | bp_core_add_message( __( 'There was an error removing that user from the group, please try again', 'buddypress' ), 'error' ); |
| 811 | bp_core_add_message( __( 'There was an error removing that user from the group; please try again', 'buddypress' ), 'error' ); |
812 | 812 | else |
813 | 813 | bp_core_add_message( __( 'User removed successfully', 'buddypress' ) ); |
814 | 814 | |
… |
… |
function groups_screen_group_admin_requests() { |
847 | 847 | |
848 | 848 | // Accept the membership request |
849 | 849 | if ( !groups_accept_membership_request( $membership_id ) ) |
850 | | bp_core_add_message( __( 'There was an error accepting the membership request, please try again.', 'buddypress' ), 'error' ); |
| 850 | bp_core_add_message( __( 'There was an error accepting the membership request; please try again.', 'buddypress' ), 'error' ); |
851 | 851 | else |
852 | 852 | bp_core_add_message( __( 'Group membership request accepted', 'buddypress' ) ); |
853 | 853 | |
… |
… |
function groups_screen_group_admin_requests() { |
858 | 858 | |
859 | 859 | // Reject the membership request |
860 | 860 | if ( !groups_reject_membership_request( $membership_id ) ) |
861 | | bp_core_add_message( __( 'There was an error rejecting the membership request, please try again.', 'buddypress' ), 'error' ); |
| 861 | bp_core_add_message( __( 'There was an error rejecting the membership request; please try again.', 'buddypress' ), 'error' ); |
862 | 862 | else |
863 | 863 | bp_core_add_message( __( 'Group membership request rejected', 'buddypress' ) ); |
864 | 864 | } |
… |
… |
function groups_screen_group_admin_delete_group() { |
892 | 892 | |
893 | 893 | // Group admin has deleted the group, now do it. |
894 | 894 | if ( !groups_delete_group( $bp->groups->current_group->id ) ) { |
895 | | bp_core_add_message( __( 'There was an error deleting the group, please try again.', 'buddypress' ), 'error' ); |
| 895 | bp_core_add_message( __( 'There was an error deleting the group; please try again.', 'buddypress' ), 'error' ); |
896 | 896 | } else { |
897 | 897 | bp_core_add_message( __( 'The group was deleted successfully', 'buddypress' ) ); |
898 | 898 | |
diff --git a/src/bp-messages/bp-messages-notifications.php b/src/bp-messages/bp-messages-notifications.php
index bb0118f..2369724 100644
a
|
b
|
To view and read your messages please log in and visit: %4$s |
89 | 89 | |
90 | 90 | // Only show the disable notifications line if the settings component is enabled |
91 | 91 | if ( bp_is_active( 'settings' ) ) { |
92 | | $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); |
| 92 | $email_content .= sprintf( __( 'To disable these notifications, please log in and go to: %s', 'buddypress' ), $settings_link ); |
93 | 93 | } |
94 | 94 | |
95 | 95 | // Send the message |
diff --git a/src/bp-templates/bp-legacy/buddypress-functions.php b/src/bp-templates/bp-legacy/buddypress-functions.php
index 784b2dc..49790cf 100644
a
|
b
|
function bp_legacy_theme_post_update() { |
704 | 704 | } |
705 | 705 | |
706 | 706 | if ( empty( $activity_id ) ) |
707 | | exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' ); |
| 707 | exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update; please try again.', 'buddypress' ) . '</p></div>' ); |
708 | 708 | |
709 | 709 | $last_recorded = ! empty( $_POST['since'] ) ? date( 'Y-m-d H:i:s', intval( $_POST['since'] ) ) : 0; |
710 | 710 | if ( $last_recorded ) { |
diff --git a/src/bp-xprofile/bp-xprofile-actions.php b/src/bp-xprofile/bp-xprofile-actions.php
index d4fb120..8ecc273 100644
a
|
b
|
function xprofile_action_delete_avatar() { |
38 | 38 | if ( bp_core_delete_existing_avatar( array( 'item_id' => bp_displayed_user_id() ) ) ) |
39 | 39 | bp_core_add_message( __( 'Your avatar was deleted successfully!', 'buddypress' ) ); |
40 | 40 | 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 that avatar; please try again.', 'buddypress' ), 'error' ); |
42 | 42 | |
43 | 43 | bp_core_redirect( wp_get_referer() ); |
44 | 44 | } |
… |
… |
function bp_xprofile_action_settings() { |
105 | 105 | // Redirect to the root domain |
106 | 106 | bp_core_redirect( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); |
107 | 107 | } |
108 | | add_action( 'bp_actions', 'bp_xprofile_action_settings' ); |
109 | | No newline at end of file |
| 108 | add_action( 'bp_actions', 'bp_xprofile_action_settings' ); |
diff --git a/src/bp-xprofile/bp-xprofile-screens.php b/src/bp-xprofile/bp-xprofile-screens.php
index 380aac7..f8381e0 100644
a
|
b
|
function xprofile_screen_edit_profile() { |
135 | 135 | |
136 | 136 | // Set the feedback messages |
137 | 137 | if ( !empty( $errors ) ) { |
138 | | bp_core_add_message( __( 'There was a problem updating some of your profile information, please try again.', 'buddypress' ), 'error' ); |
| 138 | bp_core_add_message( __( 'There was a problem updating some of your profile information; please try again.', 'buddypress' ), 'error' ); |
139 | 139 | } else { |
140 | 140 | bp_core_add_message( __( 'Changes saved.', 'buddypress' ) ); |
141 | 141 | } |