Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/17/2013 04:24:33 PM (13 years ago)
Author:
boonebgorges
Message:

Improved plural i18n for pagination links

Cases where there is only one page of results will now read, eg, "...of 1
member" instead of "...of 1 members".

Where the pagination links are put through apply_filters(), this changeset
also adds the passing of the $from_num, $to_num, and $total values to the
filter.

Fixes #5107

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-template.php

    r7405 r7439  
    692692                $total     = bp_core_number_format( $activities_template->total_activity_count );
    693693
    694                 return sprintf( __( 'Viewing item %1$s to %2$s (of %3$s items)', 'buddypress' ), $from_num, $to_num, $total );
     694                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, number_format_i18n( $total ) );
    695695        }
    696696
Note: See TracChangeset for help on using the changeset viewer.