diff --git src/bp-messages/bp-messages-template.php src/bp-messages/bp-messages-template.php
index b1ab6ea..de128ad 100644
|
|
function bp_messages_pagination_count() { |
1086 | 1086 | $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 ) ); |
1087 | 1087 | $total = bp_core_number_format( $messages_template->total_thread_count ); |
1088 | 1088 | |
1089 | | 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 ) ); |
| 1089 | if ( 1 == $messages_template->total_thread_count ) { |
| 1090 | $message = __( 'Viewing 1 message', 'buddypress' ); |
| 1091 | } else { |
| 1092 | $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s message', 'Viewing %1$s - %2$s of %3$s messages', $total, 'buddypress' ), $from_num, $to_num, number_format_i18n( $total ) ); |
| 1093 | } |
| 1094 | |
| 1095 | echo $message; |
1090 | 1096 | } |
1091 | 1097 | |
1092 | 1098 | /** |