Skip to:
Content

BuddyPress.org

Changeset 12024


Ignore:
Timestamp:
05/01/2018 01:36:56 AM (2 years ago)
Author:
boonebgorges
Message:

Nouveau: Use correct i18n for group invite failure message.

See #7786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php

    r12019 r12024  
    411411        $errors = array_keys( $invited, false );
    412412
    413         wp_send_json_error(
    414             array(
    415                 'feedback' => bp_nouveau_message_markup_wrapper( sprintf( __( 'Invites failed for %d user(s).', 'buddypress' ), count( $errors ) ), 'error' ),
     413        $error_count   = count( $errors );
     414        $error_message = sprintf( _n( 'Invites failed for %s user.', 'Invites failed for %s users.', $error_count, 'buddypress' ), number_format_i18n( $error_count ) );
     415
     416        wp_send_json_error(
     417            array(
     418                'feedback' => bp_nouveau_message_markup_wrapper( esc_html( $error_message ), 'error' ),
    416419                'users'    => $errors,
    417420                'type'     => 'error',
Note: See TracChangeset for help on using the changeset viewer.