Skip to:
Content

BuddyPress.org

Changeset 6053


Ignore:
Timestamp:
05/31/2012 11:10:17 PM (13 years ago)
Author:
boonebgorges
Message:

Improved string concatenation in Messages component

Use sprintf() when concatenating 'x Recipients' string in messages component,
instead of manually concatenating. This provides better support for l18n.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-classes.php

    r6052 r6053  
    259259    function get_recipient_links($recipients) {
    260260        if ( count($recipients) >= 5 )
    261             return count( $recipients ) . __(' Recipients', 'buddypress');
     261            return sprintf( __( '%d Recipients', 'buddypress'), count( $recipients ) );
    262262
    263263        $recipient_links = array();
Note: See TracChangeset for help on using the changeset viewer.