Making WordPress.org

Changeset 12576


Ignore:
Timestamp:
05/08/2023 02:57:47 AM (12 months ago)
Author:
dd32
Message:

Support Forums: Also Viewing: Properly display 'other users are typing' as 3 other people (1 is typing).

See #6431.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.js

    r12574 r12576  
    6969            // Add the anonymous users to the list.
    7070            if ( anonymousUserCount ) {
    71                 var anonymousText = _n( '%s other person', '%s other people', anonymousUserCount, 'wporg-forums' );
     71                var anonymousText = _n( '%s other person', '%s other people', anonymousUserCount, 'wporg-forums' ).replace( '%s', anonymousUserCount )
    7272
    73                 anonymousText = anonymousText.replace( '%s', anonymousUserCount );
    7473                if ( anonymousUserTyping ) {
    75                     anonymousText += ' ' + _n( '(%s is typing)', '(%s are typing)', anonymousUserTyping, 'wporg-forums' );
     74                    anonymousText += ' ' + _n( '(%s is typing)', '(%s are typing)', anonymousUserTyping, 'wporg-forums' ).replace( '%s', anonymousUserTyping )
    7675                }
    7776
Note: See TracChangeset for help on using the changeset viewer.