Skip to:
Content

BuddyPress.org

Ticket #6368: 6368.diff

File 6368.diff, 1.1 KB (added by boonebgorges, 6 years ago)
  • src/bp-messages/bp-messages-template.php

    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() { 
    10861086        $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 ) );
    10871087        $total     = bp_core_number_format( $messages_template->total_thread_count );
    10881088
    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;
    10901096}
    10911097
    10921098/**