Changeset 12590 for trunk/src/bp-groups/bp-groups-notifications.php
- Timestamp:
- 03/28/2020 01:39:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-notifications.php
r12437 r12590 32 32 if ( $group->name !== $old_group->name ) { 33 33 $changed[] = sprintf( 34 _x( '* Name changed from "%s" to "%s".', 'Group update email text', 'buddypress' ), 34 /* translators: 1: the old group name. 2: the new group name. */ 35 _x( '* Name changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ), 35 36 esc_html( $old_group->name ), 36 37 esc_html( $group->name ) … … 40 41 if ( $group->description !== $old_group->description ) { 41 42 $changed[] = sprintf( 42 _x( '* Description changed from "%s" to "%s".', 'Group update email text', 'buddypress' ), 43 /* translators: 1: the old group description. 2: the new group description. */ 44 _x( '* Description changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ), 43 45 esc_html( $old_group->description ), 44 46 esc_html( $group->description ) … … 48 50 if ( $group->slug !== $old_group->slug ) { 49 51 $changed[] = sprintf( 50 _x( '* Permalink changed from "%s" to "%s".', 'Group update email text', 'buddypress' ), 52 /* translators: 1: the old group permalink. 2: the new group permalink. */ 53 _x( '* Permalink changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ), 51 54 esc_url( bp_get_group_permalink( $old_group ) ), 52 55 esc_url( bp_get_group_permalink( $group ) ) … … 394 397 // we'll return values inline. 395 398 if ( (int) $total_items > 1 ) { 399 /* translators: 1: number of group membership requests. 2: group name. */ 396 400 $text = sprintf( __( '%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name ); 397 401 $amount = 'multiple'; … … 440 444 } else { 441 445 $user_fullname = bp_core_get_user_displayname( $requesting_user_id ); 446 /* translators: %s: member name */ 442 447 $text = sprintf( __( '%s requests group membership', 'buddypress' ), $user_fullname ); 443 448 $notification_link = $group_link . 'admin/membership-requests/?n=1'; … … 495 500 496 501 if ( (int) $total_items > 1 ) { 497 $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int) $total_items, $group->name ); 502 /* translators: 1: number of accepted group membership requests. 2: group name. */ 503 $text = sprintf( __( '%1$d accepted group membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name ); 498 504 $amount = 'multiple'; 499 505 $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1'; … … 534 540 } 535 541 } else { 542 /* translators: %s: group name. */ 536 543 $text = sprintf( __( 'Membership for group "%s" accepted', 'buddypress' ), $group->name ); 537 544 $filter = 'bp_groups_single_membership_request_accepted_notification'; … … 584 591 585 592 if ( (int) $total_items > 1 ) { 586 $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int) $total_items, $group->name ); 593 /* translators: 1: number of accepted group membership requests. 2: group name. */ 594 $text = sprintf( __( '%1$d rejected group membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name ); 587 595 $amount = 'multiple'; 588 596 $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1'; … … 623 631 } 624 632 } else { 633 /* translators: %s: group name. */ 625 634 $text = sprintf( __( 'Membership for group "%s" rejected', 'buddypress' ), $group->name ); 626 635 $notification_link = $group_link . '?n=1'; … … 672 681 673 682 if ( (int) $total_items > 1 ) { 683 /* translators: %d: number of groups the user has been promoted admin for */ 674 684 $text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int) $total_items ); 675 685 $amount = 'multiple'; … … 707 717 } 708 718 } else { 719 /* translators: %s: group name. */ 709 720 $text = sprintf( __( 'You were promoted to an admin in the group "%s"', 'buddypress' ), $group->name ); 710 721 $notification_link = $group_link . '?n=1'; … … 754 765 755 766 if ( (int) $total_items > 1 ) { 767 /* translators: %d: number of groups the user has been promoted mod for */ 756 768 $text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int) $total_items ); 757 769 $amount = 'multiple'; … … 789 801 } 790 802 } else { 803 /* translators: %s: group name. */ 791 804 $text = sprintf( __( 'You were promoted to a mod in the group "%s"', 'buddypress' ), $group->name ); 792 805 $notification_link = $group_link . '?n=1'; … … 837 850 838 851 if ( (int) $total_items > 1 ) { 852 /* translators: %d: number of group invites */ 839 853 $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int) $total_items ); 840 854 $amount = 'multiple'; … … 871 885 } 872 886 } else { 887 /* translators: %s: group name. */ 873 888 $text = sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name ); 874 889 $filter = 'bp_groups_single_group_invite_notification';
Note: See TracChangeset
for help on using the changeset viewer.