Changeset 9765 for trunk/src/bp-forums/bp-forums-template.php
- Timestamp:
- 04/17/2015 01:27:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-forums/bp-forums-template.php
r9515 r9765 1879 1879 $pag_filter = sprintf( __( ' matching tag "%s"', 'buddypress' ), $forum_template->search_terms ); 1880 1880 1881 if ( 1 == $forum_template->total_topic_count ) { 1882 $message = __( 'Viewing 1 topic', 'buddypress' ); 1883 } else { 1884 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s topic', 'Viewing %1$s - %2$s of %3$s topics', (int) $forum_template->total_topic_count, 'buddypress' ), $from_num, $to_num, $total, $pag_filter ); 1885 } 1886 1881 1887 /** 1882 1888 * Filters the pagination count for the current topic list. … … 1889 1895 * @param string $total Total count of topics found. 1890 1896 */ 1891 return apply_filters( 'bp_get_forum_pagination_count', sprintf( _n( 'Viewing 1 topic', 'Viewing %1$s - %2$s of %3$s topics', (int) $forum_template->total_topic_count, 'buddypress' ), $from_num, $to_num, $total, $pag_filter ), $from_num, $to_num, $total );1897 return apply_filters( 'bp_get_forum_pagination_count', $message, $from_num, $to_num, $total ); 1892 1898 } 1893 1899 … … 2623 2629 $total = bp_core_number_format( $topic_template->total_post_count ); 2624 2630 2631 if ( 1 == $topic_template->total_post_count ) { 2632 $message = __( 'Viewing 1 post', 'buddypress' ); 2633 } else { 2634 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s post', 'Viewing %1$s - %2$s of %3$s posts', (int) $topic_template->total_post_count, 'buddypress' ), $from_num, $to_num, $total ); 2635 } 2636 2625 2637 /** 2626 2638 * Filters the pagination count for the current topic page. … … 2633 2645 * @param string $total Total count of topics found. 2634 2646 */ 2635 echo apply_filters( 'bp_the_topic_pagination_count', sprintf( _n( 'Viewing 1 post', 'Viewing %1$s - %2$s of %3$s posts', (int) $topic_template->total_post_count, 'buddypress' ), $from_num, $to_num, $total ), $from_num, $to_num, $total );2647 echo apply_filters( 'bp_the_topic_pagination_count', $message, $from_num, $to_num, $total ); 2636 2648 } 2637 2649
Note: See TracChangeset
for help on using the changeset viewer.