Skip to:
Content

bbPress.org

Ticket #3627: template.php-L3322.diff

File template.php-L3322.diff, 1.1 KB (added by iworks, 9 months ago)

adds singular/plural form to translation string

  • includes/topics/template.php

     
    33193319                $last_active = bbp_get_topic_last_active_id( $topic_id );
    33203320                if ( ! empty( $vc_int ) && ! empty( $last_active ) ) {
    33213321                        $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_active, 'size' => $r['size'] ) );
    3322                         $retstr          = sprintf( esc_html__( 'This topic has %1$s, %2$s, and was last updated %3$s by %4$s.', 'bbpress' ), $reply_count, $voice_count, $time_since, $last_updated_by );
     3322                        /* translators: %1$s - reply count, %2$s - voice count voices, %3$s - time since, %4$s - last updated by */
     3323                        $retstr = sprintf( esc_html ( _n( 'This topic has %1$s, %2$s, and was last updated %3$s by %4$s.', 'This topic has %1$s, %2$s, and was last updated %3$s by %4$s.', $reply_count, 'bbpress') ), $reply_count, $voice_count, $time_since, $last_updated_by );
    33233324
    33243325                // Topic has no replies
    33253326                } elseif ( ! empty( $vc_int ) && ! empty( $reply_count ) ) {