Skip to:
Content

bbPress.org

Changeset 6226


Ignore:
Timestamp:
01/12/2017 11:18:33 AM (3 years ago)
Author:
johnjamesjacoby
Message:

Akismet: Improve translatability of "(+ %d hidden)" strings.

Fixes #3009. Props SergeyBiryukov.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r6199 r6226  
    12841284
    12851285            // Extra text
    1286             $extra = sprintf( __( ' (+ %d hidden)', 'bbpress' ), $deleted );
     1286            $extra = ' ' . sprintf( _n( '(+ %d hidden)', '(+ %d hidden)', $deleted, 'bbpress' ), $deleted );
    12871287
    12881288            // No link
  • trunk/src/includes/topics/template.php

    r6199 r6226  
    22082208
    22092209            // Extra text
    2210             $extra = sprintf( esc_html__( ' (+ %d hidden)', 'bbpress' ), $deleted );
     2210            $extra = ' ' . sprintf( _n( '(+ %d hidden)', '(+ %d hidden)', $deleted, 'bbpress' ), $deleted );
    22112211
    22122212            // No link
     
    22162216            // Link
    22172217            } else {
    2218                 $retval .= " <a href='" . esc_url( bbp_add_view_all( bbp_get_topic_permalink( $topic_id ), true ) ) . "'>$extra</a>";
     2218                $retval .= " <a href='" . esc_url( bbp_add_view_all( bbp_get_topic_permalink( $topic_id ), true ) ) . "'>" . esc_html( $extra ) . "</a>";
    22192219            }
    22202220        }
Note: See TracChangeset for help on using the changeset viewer.