Ticket #2703: 2703.diff
File 2703.diff, 13.3 KB (added by , 14 years ago) |
---|
-
bp-friends/bp-friends-notifications.php
21 21 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 22 22 $subject = '[' . $sitename . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 23 23 24 $message = sprintf( __( 25 '%1$s wants to add you as a friend. 24 $message = sprintf( __( "%1$s wants to add you as a friend.\n\nTo view all of your pending friendship requests: %2$s\n\nTo view %3$s\'s profile: %4$s\n\n---------------------\n", 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link ); 26 25 27 To view all of your pending friendship requests: %2$s28 29 To view %3$s\'s profile: %4$s30 31 ---------------------32 ', 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );33 34 26 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 35 27 36 28 /* Send the message */ 37 29 $to = apply_filters( 'friends_notification_new_request_to', $to ); 38 30 $subject = apply_filters( 'friends_notification_new_request_subject', $subject, $initiator_name ); … … 63 55 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 64 56 $subject = '[' . $sitename . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ); 65 57 66 $message = sprintf( __( 67 '%1$s accepted your friend request. 58 $message = sprintf( __( "%1$s accepted your friend request.\n\nTo view %2$s\'s profile: %3$s\n\n---------------------\n", 'buddypress' ), $friend_name, $friend_name, $friend_link ); 68 59 69 To view %2$s\'s profile: %3$s70 71 ---------------------72 ', 'buddypress' ), $friend_name, $friend_name, $friend_link );73 74 60 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 75 61 76 62 /* Send the message */ … … 83 69 do_action( 'bp_friends_sent_accepted_email', $initator_id, $subject, $message, $friendship_id, $friend_id ); 84 70 } 85 71 86 ?> 87 No newline at end of file 72 ?> -
bp-activity/bp-activity-notifications.php
33 33 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 34 34 $subject = '[' . $sitename . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ); 35 35 36 $message = sprintf( __( 37 '%1$s mentioned you in an update: 36 $message = sprintf( __( "%1$s mentioned you in an update:\n\n\"%2$s\"\n\nTo view and respond to the message, log in and visit: %3$s\n\n---------------------\n", 'buddypress' ), $poster_name, $content, $message_link ); 38 37 39 "%2$s"40 41 To view and respond to the message, log in and visit: %3$s42 43 ---------------------44 ', 'buddypress' ), $poster_name, $content, $message_link );45 46 38 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 47 39 48 40 /* Send the message */ … … 79 71 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 80 72 $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ); 81 73 82 $message = sprintf( __( 83 '%1$s replied to one of your updates: 74 $message = sprintf( __( "%1$s replied to one of your updates:\n\n\"%2$s\"\n\nTo view your original update and all comments, log in and visit: %3$s\n\n---------------------\n", 'buddypress' ), $poster_name, $content, $thread_link ); 84 75 85 "%2$s"86 87 To view your original update and all comments, log in and visit: %3$s88 89 ---------------------90 ', 'buddypress' ), $poster_name, $content, $thread_link );91 92 76 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 93 77 94 78 /* Send the message */ … … 124 108 $poster_name = stripslashes( $poster_name ); 125 109 $content = bp_activity_filter_kses( stripslashes( $content ) ); 126 110 127 $message = sprintf( __( 128 '%1$s replied to one of your comments: 111 $message = sprintf( __( "%1$s replied to one of your comments:\n\n\"%2$s\"\n\nTo view the original activity, your comment and all replies, log in and visit: %3$s\n\n---------------------\n", 'buddypress' ), $poster_name, $content, $thread_link ); 129 112 130 "%2$s"131 132 To view the original activity, your comment and all replies, log in and visit: %3$s133 134 ---------------------135 ', 'buddypress' ), $poster_name, $content, $thread_link );136 137 113 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 138 114 139 115 /* Send the message */ -
bp-messages/bp-messages-notifications.php
22 22 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 23 23 $email_subject = '[' . $sitename . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name ); 24 24 25 $email_content = sprintf( __( 26 '%s sent you a new message: 25 $email_content = sprintf( __( "%1$s sent you a new message:\n\nSubject: %2$s\n\n\"%3$s\"\n\nTo view and read your messages please log in and visit: %4$s\n\n---------------------\n", 'buddypress' ), $sender_name, $subject, $content, $message_link ); 27 26 28 Subject: %s29 30 "%s"31 32 To view and read your messages please log in and visit: %s33 34 ---------------------35 ', 'buddypress' ), $sender_name, $subject, $content, $message_link );36 37 27 $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 38 28 39 29 /* Send the message */ … … 47 37 do_action( 'bp_messages_sent_notification_email', $recipients, $email_subject, $email_content, $args ); 48 38 } 49 39 50 ?> 51 No newline at end of file 40 ?> -
bp-forums/bp-forums-admin.php
75 75 } else { 76 76 ?> 77 77 <h3><?php _e( 'New bbPress Installation', 'buddypress' ) ?></h3> 78 <p><?php _e( "You've decided to set up a new installation of bbPress for forum management in BuddyPress. This is very simple and is usually just a one click 79 process. When you're ready, hit the link below.", 'buddypress' ) ?></p> 78 <p><?php _e( "You've decided to set up a new installation of bbPress for forum management in BuddyPress. This is very simple and is usually just a one click process. When you're ready, hit the link below.", 'buddypress' ) ?></p> 80 79 <p><a class="button-primary" href="<?php echo wp_nonce_url( $post_url . '&step=new&doinstall=1', 'bp_forums_new_install_init' ) ?>"><?php _e( 'Complete Installation', 'buddypress' ) ?></a></p> 81 80 <?php 82 81 } … … 257 256 258 257 return 1; 259 258 } 260 ?> 261 No newline at end of file 259 ?> -
bp-groups/bp-groups-notifications.php
19 19 $group_link = site_url( $bp->groups->slug . '/' . $group->slug ); 20 20 $settings_link = bp_core_get_user_domain( $user_id ) . BP_SETTINGS_SLUG . '/notifications/'; 21 21 22 $message = sprintf( __( 23 'Group details for the group "%1$s" were updated: 22 $message = sprintf( __( "Group details for the group \"%1$s\" were updated:\n\nTo view the group: %2$s\n\n---------------------\n", 'buddypress' ), $group->name, $group_link ); 24 23 25 To view the group: %2$s26 27 ---------------------28 ', 'buddypress' ), $group->name, $group_link );29 30 24 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 31 25 32 26 /* Send the message */ … … 65 59 $sitename = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); 66 60 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name ); 67 61 68 $message = sprintf( __( 69 '%1$s wants to join the group "%2$s". 62 $message = sprintf( __( "%1$s wants to join the group \"%2$s\".\n\nBecause you are the administrator of this group, you must either accept or reject the membership request.\n\nTo view all pending membership requests for this group, please visit:\n%3$s\n\nTo view %4$s\'s profile: %5$s\n\n---------------------\n", 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link ); 70 63 71 Because you are the administrator of this group, you must either accept or reject the membership request.72 73 To view all pending membership requests for this group, please visit:74 %3$s75 76 To view %4$s\'s profile: %5$s77 78 ---------------------79 ', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link );80 81 64 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 82 65 83 66 /* Send the message */ … … 115 98 116 99 if ( $accepted ) { 117 100 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name ); 118 $message = sprintf( __( 119 'Your membership request for the group "%1$s" has been accepted. 101 $message = sprintf( __( "Your membership request for the group \"%1$s\" has been accepted.\n\nTo view the group please login and visit: %2$s\n\n---------------------\n", 'buddypress' ), $group->name, $group_link ); 120 102 121 To view the group please login and visit: %2$s122 123 ---------------------124 ', 'buddypress' ), $group->name, $group_link );125 126 103 } else { 127 104 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), $group->name ); 128 $message = sprintf( __( 129 'Your membership request for the group "%1$s" has been rejected. 130 131 To submit another request please log in and visit: %2$s 132 133 --------------------- 134 ', 'buddypress' ), $group->name, $group_link ); 105 $message = sprintf( __( "Your membership request for the group \"%1$s\" has been rejected.\n\nTo submit another request please log in and visit: %2$s\n\n---------------------\n", 'buddypress' ), $group->name, $group_link ); 135 106 } 136 107 137 108 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); … … 174 145 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 175 146 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name ); 176 147 177 $message = sprintf( __( 178 'You have been promoted to %1$s for the group: "%2$s". 148 $message = sprintf( __( "You have been promoted to %1$s for the group: \"%2$s\".\n\nTo view the group please visit: %3$s\n\n---------------------\n", 'buddypress' ), $promoted_to, $group->name, $group_link ); 179 149 180 To view the group please visit: %3$s181 182 ---------------------183 ', 'buddypress' ), $promoted_to, $group->name, $group_link );184 185 150 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 186 151 187 152 /* Send the message */ … … 224 189 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 225 190 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name ); 226 191 227 $message = sprintf( __( 228 'One of your friends %1$s has invited you to the group: "%2$s". 192 $message = sprintf( __( "One of your friends %1$s has invited you to the group: \"%2$s\".\n\nTo view your group invites visit: %3$s\n\nTo view the group visit: %4$s\n\nTo view %5$s\'s profile visit: %6$s\n\n---------------------\n", 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link ); 229 193 230 To view your group invites visit: %3$s231 232 To view the group visit: %4$s233 234 To view %5$s\'s profile visit: %6$s235 236 ---------------------237 ', 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link );238 239 194 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 240 195 241 196 /* Send the message */ … … 286 241 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ); 287 242 $subject = '[' . $sitename . '] ' . sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ); 288 243 289 $message = sprintf( __( 290 '%1$s mentioned you in the group "%2$s": 244 $message = sprintf( __( "%1$s mentioned you in the group \"%2$s\":\n\n\"%3$s\"\n\nTo view and respond to the message, log in and visit: %4$s\n\n---------------------\n", 'buddypress' ), $poster_name, $group->name, $content, $message_link ); 291 245 292 "%3$s"293 294 To view and respond to the message, log in and visit: %4$s295 296 ---------------------297 ', 'buddypress' ), $poster_name, $group->name, $content, $message_link );298 299 246 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 300 247 301 248 /* Send the message */