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-blogs/bp-blogs-template.php

    r7429 r7439  
    421421        $total     = bp_core_number_format( $blogs_template->total_blog_count );
    422422
    423         echo sprintf( __( 'Viewing site %1$s to %2$s (of %3$s sites)', 'buddypress' ), $from_num, $to_num, $total );
     423        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, number_format_i18n( $total ) );
    424424}
    425425
Note: See TracChangeset for help on using the changeset viewer.