Changeset 12586 for trunk/src/bp-activity/bp-activity-notifications.php
- Timestamp:
- 03/28/2020 01:31:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-notifications.php
r12222 r12586 35 35 $action_filter = 'at_mentions'; 36 36 $link = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; 37 $title = sprintf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ); 38 $amount = 'single'; 37 38 /* translators: %s: the current user display name */ 39 $title = sprintf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ); 40 $amount = 'single'; 39 41 40 42 if ( (int) $total_items > 1 ) { 43 /* translators: 1: the number of activity mentions */ 41 44 $text = sprintf( __( 'You have %1$d new mentions', 'buddypress' ), (int) $total_items ); 42 45 $amount = 'multiple'; 43 46 } else { 47 /* translators: 1: the user display name */ 44 48 $text = sprintf( __( '%1$s mentioned you', 'buddypress' ), $user_fullname ); 45 49 } … … 52 56 53 57 if ( (int) $total_items > 1 ) { 54 $link = add_query_arg( 'type', $action, $link ); 58 $link = add_query_arg( 'type', $action, $link ); 59 60 /* translators: 1: the number of activity replies */ 55 61 $text = sprintf( __( 'You have %1$d new replies', 'buddypress' ), (int) $total_items ); 56 62 $amount = 'multiple'; 57 63 } else { 58 64 $link = add_query_arg( 'rid', (int) $id, bp_activity_get_permalink( $activity_id ) ); 65 66 /* translators: 1: the user display name */ 59 67 $text = sprintf( __( '%1$s commented on one of your updates', 'buddypress' ), $user_fullname ); 60 68 } … … 67 75 68 76 if ( (int) $total_items > 1 ) { 69 $link = add_query_arg( 'type', $action, $link ); 77 $link = add_query_arg( 'type', $action, $link ); 78 79 /* translators: 1: the number of activity comment replies */ 70 80 $text = sprintf( __( 'You have %1$d new comment replies', 'buddypress' ), (int) $total_items ); 71 81 $amount = 'multiple'; 72 82 } else { 73 83 $link = add_query_arg( 'crid', (int) $id, bp_activity_get_permalink( $activity_id ) ); 84 85 /* translators: 1: the user display name */ 74 86 $text = sprintf( __( '%1$s replied to one of your activity comments', 'buddypress' ), $user_fullname ); 75 87 } … … 397 409 <tr id="activity-notification-settings-mentions"> 398 410 <td> </td> 399 <td><?php printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( bp_displayed_user_id() ) ) ?></td> 411 <td> 412 <?php 413 /* translators: %s: the displayed user username */ 414 printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( bp_displayed_user_id() ) ); 415 ?> 416 </td> 400 417 <td class="yes"><input type="radio" name="notifications[notification_activity_new_mention]" id="notification-activity-new-mention-yes" value="yes" <?php checked( $mention, 'yes', true ) ?>/><label for="notification-activity-new-mention-yes" class="bp-screen-reader-text"><?php 401 418 /* translators: accessibility text */ 402 _e( 'Yes, send email', 'buddypress' );419 esc_html_e( 'Yes, send email', 'buddypress' ); 403 420 ?></label></td> 404 421 <td class="no"><input type="radio" name="notifications[notification_activity_new_mention]" id="notification-activity-new-mention-no" value="no" <?php checked( $mention, 'no', true ) ?>/><label for="notification-activity-new-mention-no" class="bp-screen-reader-text"><?php 405 422 /* translators: accessibility text */ 406 _e( 'No, do not send email', 'buddypress' );423 esc_html_e( 'No, do not send email', 'buddypress' ); 407 424 ?></label></td> 408 425 </tr> … … 414 431 <td class="yes"><input type="radio" name="notifications[notification_activity_new_reply]" id="notification-activity-new-reply-yes" value="yes" <?php checked( $reply, 'yes', true ) ?>/><label for="notification-activity-new-reply-yes" class="bp-screen-reader-text"><?php 415 432 /* translators: accessibility text */ 416 _e( 'Yes, send email', 'buddypress' );433 esc_html_e( 'Yes, send email', 'buddypress' ); 417 434 ?></label></td> 418 435 <td class="no"><input type="radio" name="notifications[notification_activity_new_reply]" id="notification-activity-new-reply-no" value="no" <?php checked( $reply, 'no', true ) ?>/><label for="notification-activity-new-reply-no" class="bp-screen-reader-text"><?php 419 436 /* translators: accessibility text */ 420 _e( 'No, do not send email', 'buddypress' );437 esc_html_e( 'No, do not send email', 'buddypress' ); 421 438 ?></label></td> 422 439 </tr>
Note: See TracChangeset
for help on using the changeset viewer.