From c47169899747533f84aad7ccfc0d37389b32add3 Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Sat, 7 Nov 2015 22:16:02 -0600 Subject: [PATCH] Improve wording of Reader notification email. --- includes/hooks-buddypress-notifications.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/includes/hooks-buddypress-notifications.php b/includes/hooks-buddypress-notifications.php index 9653948..c5a30bd 100644 --- a/includes/hooks-buddypress-notifications.php +++ b/includes/hooks-buddypress-notifications.php @@ -168,7 +168,9 @@ function cacsp_notification_added_reader( CACSP_Paper $paper, $user_id ) { 'component_action' => $type, ) ); - $text = sprintf( __( '%s has added you as a reader on the paper "%s".', 'social-paper' ), bp_core_get_user_displayname( bp_loggedin_user_id() ), $paper->post_title ); + $adder_name = bp_core_get_user_displayname( bp_loggedin_user_id() ); + + $text = sprintf( __( '%s has added you as a reader on the paper "%s".', 'social-paper' ), $adder_name, $paper->post_title ); $link = wp_login_url( get_permalink( $paper->ID ) ); $content = sprintf( __( @@ -179,13 +181,9 @@ function cacsp_notification_added_reader( CACSP_Paper $paper, $user_id ) { if ( bp_is_active( 'follow' ) ) { $content .= "\n\n"; -$content .= sprintf( __( -'Since you were added as a reader, you are now also following activity for this paper. You can view all activity for your papers at: -%1$s - -To view a list of papers you are following, visit this page: -%2$s -', 'social-paper' ), bp_core_get_user_domain( $user_id ) . bp_get_activity_slug() . "/papers/", bp_core_get_user_domain( $user_id ) . "/papers/follow/" ); + $content .= sprintf( __( +'%1$s is a private paper, but %2$s has granted you permission to read and leave comments. To receive notifications when the paper is edited or receives comments, add yourself as a follower. +', 'social-paper' ), $paper->post_title, $adder_name ); $content .= "\n\n"; }