diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
index 2e58b44..37c5150 100644
a
|
b
|
function bp_activity_pagination_count() { |
768 | 768 | $to_num = bp_core_number_format( ( $start_num + ( $activities_template->pag_num - 1 ) > $activities_template->total_activity_count ) ? $activities_template->total_activity_count : $start_num + ( $activities_template->pag_num - 1 ) ); |
769 | 769 | $total = bp_core_number_format( $activities_template->total_activity_count ); |
770 | 770 | |
771 | | return sprintf( _n( 'Viewing item %1$s to %2$s (of %3$s item)', 'Viewing item %1$s to %2$s (of %3$s items)', $total, 'buddypress' ), $from_num, $to_num, $total ); |
| 771 | return sprintf( _n( 'Viewing 1 item', 'Viewing %1$s - %2$s of %3$s items', $total, 'buddypress' ), $from_num, $to_num, $total ); |
772 | 772 | } |
773 | 773 | |
774 | 774 | /** |
diff --git a/src/bp-blogs/bp-blogs-template.php b/src/bp-blogs/bp-blogs-template.php
index 7301159..d608845 100644
a
|
b
|
function bp_blogs_pagination_count() { |
434 | 434 | $to_num = bp_core_number_format( ( $start_num + ( $blogs_template->pag_num - 1 ) > $blogs_template->total_blog_count ) ? $blogs_template->total_blog_count : $start_num + ( $blogs_template->pag_num - 1 ) ); |
435 | 435 | $total = bp_core_number_format( $blogs_template->total_blog_count ); |
436 | 436 | |
437 | | echo sprintf( _n( 'Viewing site %1$s to %2$s (of %3$s site)', 'Viewing site %1$s to %2$s (of %3$s sites)', $total, 'buddypress' ), $from_num, $to_num, $total ); |
| 437 | echo sprintf( _n( 'Viewing 1 site', 'Viewing %1$s - %2$s of %3$s sites', $total, 'buddypress' ), $from_num, $to_num, $total ); |
438 | 438 | } |
439 | 439 | |
440 | 440 | /** |
diff --git a/src/bp-groups/bp-groups-template.php b/src/bp-groups/bp-groups-template.php
index e0508ec..1a2c6d1 100644
a
|
b
|
function bp_groups_pagination_count() { |
1019 | 1019 | $to_num = bp_core_number_format( ( $start_num + ( $groups_template->pag_num - 1 ) > $groups_template->total_group_count ) ? $groups_template->total_group_count : $start_num + ( $groups_template->pag_num - 1 ) ); |
1020 | 1020 | $total = bp_core_number_format( $groups_template->total_group_count ); |
1021 | 1021 | |
1022 | | return apply_filters( 'bp_get_groups_pagination_count', sprintf( _n( 'Viewing group %1$s to %2$s (of %3$s group)', 'Viewing group %1$s to %2$s (of %3$s groups)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); |
| 1022 | return apply_filters( 'bp_get_groups_pagination_count', sprintf( _n( 'Viewing 1', 'Viewing %1$s - %2$s of %3$s groups', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); |
1023 | 1023 | } |
1024 | 1024 | |
1025 | 1025 | function bp_groups_auto_join() { |
… |
… |
function bp_group_member_pagination_count() { |
2451 | 2451 | $to_num = bp_core_number_format( ( $start_num + ( $members_template->pag_num - 1 ) > $members_template->total_member_count ) ? $members_template->total_member_count : $start_num + ( $members_template->pag_num - 1 ) ); |
2452 | 2452 | $total = bp_core_number_format( $members_template->total_member_count ); |
2453 | 2453 | |
2454 | | return apply_filters( 'bp_get_group_member_pagination_count', sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member)', 'Viewing members %1$s to %2$s (of %3$s members)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); |
| 2454 | 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 ); |
2455 | 2455 | } |
2456 | 2456 | |
2457 | 2457 | function bp_group_member_admin_pagination() { |
… |
… |
function bp_group_requests_pagination_count() { |
3329 | 3329 | $to_num = bp_core_number_format( ( $start_num + ( $requests_template->pag_num - 1 ) > $requests_template->total_request_count ) ? $requests_template->total_request_count : $start_num + ( $requests_template->pag_num - 1 ) ); |
3330 | 3330 | $total = bp_core_number_format( $requests_template->total_request_count ); |
3331 | 3331 | |
3332 | | return apply_filters( 'bp_get_group_requests_pagination_count', sprintf( _n( 'Viewing requests %1$s to %2$s (of %3$s request)', 'Viewing request %1$s to %2$s (of %3$s requests)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); |
| 3332 | 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 ); |
3333 | 3333 | } |
3334 | 3334 | |
3335 | 3335 | /************************************************************************************ |
… |
… |
function bp_group_invite_pagination_count() { |
3624 | 3624 | $to_num = bp_core_number_format( ( $start_num + ( $invites_template->pag_num - 1 ) > $invites_template->total_invite_count ) ? $invites_template->total_invite_count : $start_num + ( $invites_template->pag_num - 1 ) ); |
3625 | 3625 | $total = bp_core_number_format( $invites_template->total_invite_count ); |
3626 | 3626 | |
3627 | | return apply_filters( 'bp_get_groups_pagination_count', sprintf( _n( 'Viewing invitation %1$s to %2$s (of %3$s invitation)', 'Viewing invitation %1$s to %2$s (of %3$s invitations)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); |
| 3627 | 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 ); |
3628 | 3628 | } |
3629 | 3629 | |
3630 | 3630 | /*** |
diff --git a/src/bp-members/bp-members-template.php b/src/bp-members/bp-members-template.php
index 178bcce..e29e242 100644
a
|
b
|
function bp_members_pagination_count() { |
513 | 513 | $total = bp_core_number_format( $members_template->total_member_count ); |
514 | 514 | |
515 | 515 | if ( 'active' == $members_template->type ) |
516 | | $pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s active member)', 'Viewing member %1$s to %2$s (of %3$s active members)', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
| 516 | $pag = sprintf( _n( 'Viewing 1 active member', 'Viewing %1$s - %2$s of %3$s active members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
517 | 517 | else if ( 'popular' == $members_template->type ) |
518 | | $pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member with friends)', 'Viewing member %1$s to %2$s (of %3$s members with friends)', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
| 518 | $pag = sprintf( _n( 'Viewing 1 member with friends', 'Viewing %1$s - %2$s of %3$s members with friends', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
519 | 519 | else if ( 'online' == $members_template->type ) |
520 | | $pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member online)', 'Viewing member %1$s to %2$s (of %3$s members online)', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
| 520 | $pag = sprintf( _n( 'Viewing 1 online member', 'Viewing %1$s - %2$s of %3$s online members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
521 | 521 | else |
522 | | $pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member)', 'Viewing member %1$s to %2$s (of %3$s members)', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
| 522 | $pag = sprintf( _n( 'Viewing 1 member', 'Viewing %1$s - %2$s of %3$s members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); |
523 | 523 | |
524 | 524 | return apply_filters( 'bp_members_pagination_count', $pag ); |
525 | 525 | } |
diff --git a/src/bp-messages/bp-messages-template.php b/src/bp-messages/bp-messages-template.php
index a84e7f7..142d6c2 100644
a
|
b
|
function bp_messages_pagination_count() { |
717 | 717 | $to_num = bp_core_number_format( ( $start_num + ( $messages_template->pag_num - 1 ) > $messages_template->total_thread_count ) ? $messages_template->total_thread_count : $start_num + ( $messages_template->pag_num - 1 ) ); |
718 | 718 | $total = bp_core_number_format( $messages_template->total_thread_count ); |
719 | 719 | |
720 | | echo sprintf( _n( 'Viewing message %1$s to %2$s (of %3$s message)', 'Viewing message %1$s to %2$s (of %3$s messages)', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) ); ?><?php |
| 720 | echo sprintf( _n( 'Viewing 1 message', 'Viewing %1$s - %2$s of %3$s messages', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) ); ?><?php |
721 | 721 | } |
722 | 722 | |
723 | 723 | /** |
diff --git a/src/bp-notifications/bp-notifications-template.php b/src/bp-notifications/bp-notifications-template.php
index c309c5e..dab812d 100644
a
|
b
|
function bp_notifications_pagination_count() { |
1000 | 1000 | $from_num = bp_core_number_format( $start_num ); |
1001 | 1001 | $to_num = bp_core_number_format( ( $start_num + ( $query_loop->pag_num - 1 ) > $query_loop->total_notification_count ) ? $query_loop->total_notification_count : $start_num + ( $query_loop->pag_num - 1 ) ); |
1002 | 1002 | $total = bp_core_number_format( $query_loop->total_notification_count ); |
1003 | | $pag = sprintf( _n( 'Viewing %1$s to %2$s (of %3$s notification)', 'Viewing %1$s to %2$s (of %3$s notifications)', $total, 'buddypress' ), $from_num, $to_num, $total ); |
| 1003 | $pag = sprintf( _n( 'Viewing 1 notification', 'Viewing %1$s - %2$s of %3$s notifications', $total, 'buddypress' ), $from_num, $to_num, $total ); |
1004 | 1004 | |
1005 | 1005 | return apply_filters( 'bp_notifications_pagination_count', $pag ); |
1006 | 1006 | } |