Changeset 9765 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 04/17/2015 01:27:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r9706 r9765 1794 1794 $total = bp_core_number_format( $groups_template->total_group_count ); 1795 1795 1796 if ( 1 == $groups_template->total_group_count ) { 1797 $message = __( 'Viewing 1 group', 'buddypress' ); 1798 } else { 1799 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s group', 'Viewing %1$s - %2$s of %3$s groups', $groups_template->total_group_count, 'buddypress' ), $from_num, $to_num, $total ); 1800 } 1801 1796 1802 /** 1797 1803 * Filters the "Viewing x-y of z groups" pagination message. … … 1804 1810 * @param string $total Total amount of groups found. 1805 1811 */ 1806 return apply_filters( 'bp_get_groups_pagination_count', sprintf( _n( 'Viewing 1 group', 'Viewing %1$s - %2$s of %3$s groups', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );1812 return apply_filters( 'bp_get_groups_pagination_count', $message, $from_num, $to_num, $total ); 1807 1813 } 1808 1814 … … 4116 4122 $total = bp_core_number_format( $members_template->total_member_count ); 4117 4123 4124 if ( 1 == $members_template->total_member_count ) { 4125 $message = __( 'Viewing 1 member', 'buddypress' ); 4126 } else { 4127 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s member', 'Viewing %1$s - %2$s of %3$s groups', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); 4128 } 4129 4118 4130 /** 4119 4131 * Filters the "Viewing x-y of z members" pagination message. … … 4126 4138 * @param string $total Total amount of members found. 4127 4139 */ 4128 return apply_filters( 'bp_get_group_member_pagination_count', sprintf( _n( 'Viewing 1 member', 'Viewing %1$s - %2$s of %3$s members', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );4140 return apply_filters( 'bp_get_group_member_pagination_count', $message, $from_num, $to_num, $total ); 4129 4141 } 4130 4142 … … 5239 5251 $total = bp_core_number_format( $requests_template->total_request_count ); 5240 5252 5253 if ( 1 == $requests_template->total_request_count ) { 5254 $message = __( 'Viewing 1 request', 'buddypress' ); 5255 } else { 5256 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s request', 'Viewing %1$s - %2$s of %3$s requests', $requests_template->total_request_count, 'buddypress' ), $from_num, $to_num, $total ); 5257 } 5258 5241 5259 /** 5242 5260 * Filters pagination count text for group membership requests. … … 5246 5264 * @param string $value Pagination count text for group membership requests. 5247 5265 */ 5248 return apply_filters( 'bp_get_group_requests_pagination_count', sprintf( _n( 'Viewing 1 request', 'Viewing %1$s - %2$s of %3$s requests', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );5266 return apply_filters( 'bp_get_group_requests_pagination_count', $message, $from_num, $to_num, $total ); 5249 5267 } 5250 5268 … … 5609 5627 $total = bp_core_number_format( $invites_template->total_invite_count ); 5610 5628 5629 if ( 1 == $invites_template->total_invite_count ) { 5630 $message = __( 'Viewing 1 invitation', 'buddypress' ); 5631 } else { 5632 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s invitation', 'Viewing %1$s - %2$s of %3$s invitations', $invites_template->total_invite_count, 'buddypress' ), $from_num, $to_num, $total ); 5633 } 5634 5611 5635 /** This filter is documented in bp-groups/bp-groups-template.php */ 5612 return apply_filters( 'bp_get_groups_pagination_count', sprintf( _n( 'Viewing 1 invitation', 'Viewing %1$s - %2$s of %3$s invitations', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );5636 return apply_filters( 'bp_get_groups_pagination_count', $message, $from_num, $to_num, $total ); 5613 5637 } 5614 5638
Note: See TracChangeset
for help on using the changeset viewer.