Ticket #5767: 5767.patch
File 5767.patch, 10.8 KB (added by , 10 years ago) |
---|
-
src/bp-activity/bp-activity-template.php
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( _x( '%1$s - %2$s of %3$s', 'Viewing activity items', $total, 'buddypress' ), $from_num, $to_num, $total ); 772 772 } 773 773 774 774 /** -
src/bp-blogs/bp-blogs-template.php
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( _x( '%1$s - %2$s of %3$s', 'Viewing sites', $total, 'buddypress' ), $from_num, $to_num, $total ); 438 438 } 439 439 440 440 /** -
src/bp-forums/bp-forums-template.php
1524 1524 if ( 'tags' == $forum_template->type && !empty( $forum_template->search_terms ) ) 1525 1525 $pag_filter = sprintf( __( ' matching tag "%s"', 'buddypress' ), $forum_template->search_terms ); 1526 1526 1527 return apply_filters( 'bp_get_forum_pagination_count', sprintf( _ n( 'Viewing topic %s to %s (of %d topic%s)', 'Viewing topic %s to %s (of %d total topics%s)', $total, 'buddypress' ), $from_num, $to_num, $total, $pag_filter ), $from_num, $to_num, $total );1527 return apply_filters( 'bp_get_forum_pagination_count', sprintf( _x( '%s - %s of %d%s', 'Viewing forum topics', $total, 'buddypress' ), $from_num, $to_num, $total, $pag_filter ), $from_num, $to_num, $total ); 1528 1528 } 1529 1529 1530 1530 /** … … 2163 2163 $to_num = bp_core_number_format( ( $start_num + ( $topic_template->pag_num - 1 ) > $topic_template->total_post_count ) ? $topic_template->total_post_count : $start_num + ( $topic_template->pag_num - 1 ) ); 2164 2164 $total = bp_core_number_format( $topic_template->total_post_count ); 2165 2165 2166 echo apply_filters( 'bp_the_topic_pagination_count', sprintf( _ n( 'Viewing post %1$s to %2$s (%3$s post)', 'Viewing post %1$s to %2$s (%3$s totalposts)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );2166 echo apply_filters( 'bp_the_topic_pagination_count', sprintf( _x( '%1$s - %2$s of %3$s', 'Viewing forum posts)', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); 2167 2167 } 2168 2168 2169 2169 /** -
src/bp-groups/bp-groups-template.php
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( _x( '%1$s - %2$s of %3$s', 'Viewing group', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); 1023 1023 } 1024 1024 1025 1025 function bp_groups_auto_join() { … … 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( _x( '%1$s - %2$s of %3$s', 'Viewing group 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() { … … 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( _x( '%1$s - %2$s of %3$s', 'Viewing group request', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); 3333 3333 } 3334 3334 3335 3335 /************************************************************************************ … … 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( _x( '%1$s - %2$s of %3$s', 'Viewing group invitation', $total, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total ); 3628 3628 } 3629 3629 3630 3630 /*** -
src/bp-members/bp-members-template.php
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( _x( '%1$s - %2$s of %3$s', 'Viewing 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( _x( '%1$s - %2$s of %3$s', 'Viewing 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( _x( '%1$s - %2$s of %3$s', 'Viewing members online', $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( _x( '%1$s - %2$s of %3$s', 'Viewing 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 } -
src/bp-messages/bp-messages-template.php
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 ) ); ?><?php720 echo sprintf( _x( '%1$s - %2$s of %3$s', 'Viewing message', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) ); ?><?php 721 721 } 722 722 723 723 /** -
src/bp-notifications/bp-notifications-template.php
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( _x( '%1$s - %2$s of %3$s', 'Viewing notifications', $total, 'buddypress' ), $from_num, $to_num, $total ); 1004 1004 1005 1005 return apply_filters( 'bp_notifications_pagination_count', $pag ); 1006 1006 }