Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:31:24 PM (6 years ago)
Author:
imath
Message:

BP Activity: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-notifications.php

    r12222 r12586  
    3535                        $action_filter = 'at_mentions';
    3636                        $link          = bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/';
    37                         $title         = sprintf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() );
    38                         $amount        = 'single';
     37
     38                        /* translators: %s: the current user display name */
     39                        $title  = sprintf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() );
     40                        $amount = 'single';
    3941
    4042                        if ( (int) $total_items > 1 ) {
     43                                /* translators: 1: the number of activity mentions */
    4144                                $text   = sprintf( __( 'You have %1$d new mentions', 'buddypress' ), (int) $total_items );
    4245                                $amount = 'multiple';
    4346                        } else {
     47                                /* translators: 1: the user display name */
    4448                                $text = sprintf( __( '%1$s mentioned you', 'buddypress' ), $user_fullname );
    4549                        }
     
    5256
    5357                        if ( (int) $total_items > 1 ) {
    54                                 $link   = add_query_arg( 'type', $action, $link );
     58                                $link = add_query_arg( 'type', $action, $link );
     59
     60                                /* translators: 1: the number of activity replies */
    5561                                $text   = sprintf( __( 'You have %1$d new replies', 'buddypress' ), (int) $total_items );
    5662                                $amount = 'multiple';
    5763                        } else {
    5864                                $link = add_query_arg( 'rid', (int) $id, bp_activity_get_permalink( $activity_id ) );
     65
     66                                /* translators: 1: the user display name */
    5967                                $text = sprintf( __( '%1$s commented on one of your updates', 'buddypress' ), $user_fullname );
    6068                        }
     
    6775
    6876                        if ( (int) $total_items > 1 ) {
    69                                 $link   = add_query_arg( 'type', $action, $link );
     77                                $link = add_query_arg( 'type', $action, $link );
     78
     79                                /* translators: 1: the number of activity comment replies */
    7080                                $text   = sprintf( __( 'You have %1$d new comment replies', 'buddypress' ), (int) $total_items );
    7181                                $amount = 'multiple';
    7282                        } else {
    7383                                $link = add_query_arg( 'crid', (int) $id, bp_activity_get_permalink( $activity_id ) );
     84
     85                                /* translators: 1: the user display name */
    7486                                $text = sprintf( __( '%1$s replied to one of your activity comments', 'buddypress' ), $user_fullname );
    7587                        }
     
    397409                                <tr id="activity-notification-settings-mentions">
    398410                                        <td>&nbsp;</td>
    399                                         <td><?php printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( bp_displayed_user_id() ) ) ?></td>
     411                                        <td>
     412                                                <?php
     413                                                /* translators: %s: the displayed user username */
     414                                                printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( bp_displayed_user_id() ) );
     415                                                ?>
     416                                        </td>
    400417                                        <td class="yes"><input type="radio" name="notifications[notification_activity_new_mention]" id="notification-activity-new-mention-yes" value="yes" <?php checked( $mention, 'yes', true ) ?>/><label for="notification-activity-new-mention-yes" class="bp-screen-reader-text"><?php
    401418                                                /* translators: accessibility text */
    402                                                 _e( 'Yes, send email', 'buddypress' );
     419                                                esc_html_e( 'Yes, send email', 'buddypress' );
    403420                                        ?></label></td>
    404421                                        <td class="no"><input type="radio" name="notifications[notification_activity_new_mention]" id="notification-activity-new-mention-no" value="no" <?php checked( $mention, 'no', true ) ?>/><label for="notification-activity-new-mention-no" class="bp-screen-reader-text"><?php
    405422                                                /* translators: accessibility text */
    406                                                 _e( 'No, do not send email', 'buddypress' );
     423                                                esc_html_e( 'No, do not send email', 'buddypress' );
    407424                                        ?></label></td>
    408425                                </tr>
     
    414431                                <td class="yes"><input type="radio" name="notifications[notification_activity_new_reply]" id="notification-activity-new-reply-yes" value="yes" <?php checked( $reply, 'yes', true ) ?>/><label for="notification-activity-new-reply-yes" class="bp-screen-reader-text"><?php
    415432                                        /* translators: accessibility text */
    416                                         _e( 'Yes, send email', 'buddypress' );
     433                                        esc_html_e( 'Yes, send email', 'buddypress' );
    417434                                ?></label></td>
    418435                                <td class="no"><input type="radio" name="notifications[notification_activity_new_reply]" id="notification-activity-new-reply-no" value="no" <?php checked( $reply, 'no', true ) ?>/><label for="notification-activity-new-reply-no" class="bp-screen-reader-text"><?php
    419436                                        /* translators: accessibility text */
    420                                         _e( 'No, do not send email', 'buddypress' );
     437                                        esc_html_e( 'No, do not send email', 'buddypress' );
    421438                                ?></label></td>
    422439                        </tr>
Note: See TracChangeset for help on using the changeset viewer.