Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:41:41 PM (5 years ago)
Author:
imath
Message:

BP Members: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r12554 r12591  
    843843            add_meta_box(
    844844                'bp_members_admin_user_stats',
    845                 sprintf( _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ), $display_name ),
     845                sprintf(
     846                    /* translators: %s: member name */
     847                    _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ),
     848                    $display_name
     849                ),
    846850                array( $this, 'user_admin_stats_metabox' ),
    847851                $screen_id,
     
    11391143                        $date  = date_i18n( $datef, strtotime( $user->user_registered ) );
    11401144                        ?>
    1141                         <span id="timestamp"><?php printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></span>
     1145                        <span id="timestamp">
     1146                            <?php
     1147                            /* translators: %s: registration date */
     1148                            printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' );
     1149                            ?>
     1150                        </span>
    11421151                    </div>
    11431152                </div> <!-- #misc-publishing-actions -->
     
    11691178    public function user_admin_spammer_metabox( $user = null ) {
    11701179    ?>
    1171         <p><?php printf( __( '%s has been marked as a spammer. All BuddyPress data associated with the user has been removed', 'buddypress' ), esc_html( bp_core_get_user_displayname( $user->ID ) ) ) ;?></p>
     1180        <p>
     1181            <?php
     1182            /* translators: %s: member name */
     1183            printf( __( '%s has been marked as a spammer. All BuddyPress data associated with the user has been removed', 'buddypress' ), esc_html( bp_core_get_user_displayname( $user->ID ) ) );
     1184            ?>
     1185        </p>
    11721186    <?php
    11731187    }
     
    12001214
    12011215        <ul>
    1202             <li class="bp-members-profile-stats"><?php printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></li>
     1216            <li class="bp-members-profile-stats">
     1217                <?php
     1218                /* translators: %s: date */
     1219                printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' );
     1220                ?>
     1221            </li>
    12031222
    12041223            <?php
     
    15421561        }
    15431562
    1544         $url     = add_query_arg( 'page', 'bp-signups', $base_url );
    1545         $text    = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' );
     1563        $url = add_query_arg( 'page', 'bp-signups', $base_url );
     1564
     1565        /* translators: %s: number of pending accounts */
     1566        $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' );
    15461567
    15471568        $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), $class, $text );
     
    18121833                    if ( ! empty( $_REQUEST['resent'] ) ) {
    18131834                        $notice['message'] .= sprintf(
     1835                            /* translators: %s: number of activation emails sent */
    18141836                            _nx( '%s activation email successfully sent! ', '%s activation emails successfully sent! ',
    18151837                             absint( $_REQUEST['resent'] ),
     
    18231845                    if ( ! empty( $_REQUEST['notsent'] ) ) {
    18241846                        $notice['message'] .= sprintf(
     1847                            /* translators: %s: number of unsent activation emails */
    18251848                            _nx( '%s activation email was not sent.', '%s activation emails were not sent.',
    18261849                             absint( $_REQUEST['notsent'] ),
     
    18461869                    if ( ! empty( $_REQUEST['activated'] ) ) {
    18471870                        $notice['message'] .= sprintf(
     1871                            /* translators: %s: number of activated accounts */
    18481872                            _nx( '%s account successfully activated! ', '%s accounts successfully activated! ',
    18491873                             absint( $_REQUEST['activated'] ),
     
    18571881                    if ( ! empty( $_REQUEST['notactivated'] ) ) {
    18581882                        $notice['message'] .= sprintf(
     1883                            /* translators: %s: number of accounts not activated */
    18591884                            _nx( '%s account was not activated.', '%s accounts were not activated.',
    18601885                             absint( $_REQUEST['notactivated'] ),
     
    18801905                    if ( ! empty( $_REQUEST['deleted'] ) ) {
    18811906                        $notice['message'] .= sprintf(
     1907                            /* translators: %s: number of deleted signups */
    18821908                            _nx( '%s sign-up successfully deleted!', '%s sign-ups successfully deleted!',
    18831909                             absint( $_REQUEST['deleted'] ),
     
    18911917                    if ( ! empty( $_REQUEST['notdeleted'] ) ) {
    18921918                        $notice['message'] .= sprintf(
     1919                            /* translators: %s: number of deleted signups not deleted */
    18931920                            _nx( '%s sign-up was not deleted.', '%s sign-ups were not deleted.',
    18941921                             absint( $_REQUEST['notdeleted'] ),
     
    22892316
    22902317                        <p class="description">
    2291                             <?php printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified ) ;?>
     2318                            <?php
     2319                            /* translators: %s: notification date */
     2320                            printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified );
     2321                            ?>
    22922322
    22932323                            <?php if ( ! empty( $signup->recently_sent ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.