Skip to:
Content

BuddyPress.org

Changeset 10828


Ignore:
Timestamp:
05/30/2016 06:30:16 AM (10 years ago)
Author:
mercime
Message:

Add translator comments for screen reader text in component files.

See #6951.

Location:
trunk/src
Files:
22 edited

Legend:

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

    r10812 r10828  
    799799?>
    800800
    801         <label class="screen-reader-text" for="bp-activities-link"><?php _e( 'Link', 'buddypress' ); ?></label>
     801        <label class="screen-reader-text" for="bp-activities-link"><?php
     802                /* translators: accessibility text */
     803                _e( 'Link', 'buddypress' );
     804        ?></label>
    802805        <input type="url" name="bp-activities-link" id="bp-activities-link" value="<?php echo esc_url( $item->primary_link ); ?>" aria-describedby="bp-activities-link-description" />
    803806        <p id="bp-activities-link-description"><?php _e( 'Activity generated by posts and comments, forum topics and replies, and some plugins, uses the link field for a permalink back to the content item.', 'buddypress' ); ?></p>
     
    816819?>
    817820
    818         <label class="screen-reader-text" for="bp-activities-userid"><?php _e( 'Author ID', 'buddypress' ); ?></label>
     821        <label class="screen-reader-text" for="bp-activities-userid"><?php
     822                /* translators: accessibility text */
     823                _e( 'Author ID', 'buddypress' );
     824        ?></label>
    819825        <input type="number" name="bp-activities-userid" id="bp-activities-userid" value="<?php echo esc_attr( $item->user_id ); ?>" min="1" />
    820826
     
    891897        ?>
    892898
    893         <label for="bp-activities-type" class="screen-reader-text"><?php esc_html_e( 'Select activity type', 'buddypress' ); ?></label>
     899        <label for="bp-activities-type" class="screen-reader-text"><?php
     900                /* translators: accessibility text */
     901                esc_html_e( 'Select activity type', 'buddypress' );
     902        ?></label>
    894903        <select name="bp-activities-type" id="bp-activities-type">
    895904                <?php foreach ( $actions as $k => $v ) : ?>
  • trunk/src/bp-activity/bp-activity-screens.php

    r10825 r10828  
    335335                                        <td>&nbsp;</td>
    336336                                        <td><?php printf( __( 'A member mentions you in an update using "@%s"', 'buddypress' ), bp_core_get_username( bp_displayed_user_id() ) ) ?></td>
    337                                         <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 _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    338                                         <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 _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     337                                        <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
     338                                                /* translators: accessibility text */
     339                                                _e( 'Yes, send email', 'buddypress' );
     340                                        ?></label></td>
     341                                        <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
     342                                                /* translators: accessibility text */
     343                                                _e( 'No, do not send email', 'buddypress' );
     344                                        ?></label></td>
    339345                                </tr>
    340346                        <?php endif; ?>
     
    343349                                <td>&nbsp;</td>
    344350                                <td><?php _e( "A member replies to an update or comment you've posted", 'buddypress' ) ?></td>
    345                                 <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 _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    346                                 <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 _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     351                                <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
     352                                        /* translators: accessibility text */
     353                                        _e( 'Yes, send email', 'buddypress' );
     354                                ?></label></td>
     355                                <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
     356                                        /* translators: accessibility text */
     357                                        _e( 'No, do not send email', 'buddypress' );
     358                                ?></label></td>
    347359                        </tr>
    348360
  • trunk/src/bp-activity/classes/class-bp-activity-list-table.php

    r10776 r10828  
    244244                $this->display_tablenav( 'top' ); ?>
    245245
    246                 <h2 class="screen-reader-text"><?php _e( 'Activities list', 'buddypress' ); ?></h2>
     246                <h2 class="screen-reader-text"><?php
     247                        /* translators: accessibility text */
     248                        _e( 'Activities list', 'buddypress' );
     249                ?></h2>
    247250
    248251                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
  • trunk/src/bp-core/admin/bp-core-admin-components.php

    r10825 r10828  
    163163        </ul>
    164164
    165         <h3 class="screen-reader-text"><?php _e( 'Components list', 'buddypress' ); ?></h3>
     165        <h3 class="screen-reader-text"><?php
     166                /* translators: accessibility text */
     167                _e( 'Components list', 'buddypress' );
     168        ?></h3>
    166169
    167170        <table class="wp-list-table widefat plugins">
    168171                <thead>
    169172                        <tr>
    170                                 <td id="cb" class="manage-column column-cb check-column"><input id="cb-select-all-1" type="checkbox" disabled><label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Bulk selection is disabled', 'buddypress' ); ?></label></td>
     173                                <td id="cb" class="manage-column column-cb check-column"><input id="cb-select-all-1" type="checkbox" disabled><label class="screen-reader-text" for="cb-select-all-1"><?php
     174                                        /* translators: accessibility text */
     175                                        _e( 'Bulk selection is disabled', 'buddypress' );
     176                                ?></label></td>
    171177                                <th scope="col" id="name" class="manage-column column-title column-primary"><?php _e( 'Component', 'buddypress' ); ?></th>
    172178                                <th scope="col" id="description" class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th>
     
    227233                <tfoot>
    228234                        <tr>
    229                                 <td class="manage-column column-cb check-column"><input id="cb-select-all-2" type="checkbox" disabled><label class="screen-reader-text" for="cb-select-all-2"><?php _e( 'Bulk selection is disabled', 'buddypress' ); ?></label></td>
     235                                <td class="manage-column column-cb check-column"><input id="cb-select-all-2" type="checkbox" disabled><label class="screen-reader-text" for="cb-select-all-2"><?php
     236                                        /* translators: accessibility text */
     237                                        _e( 'Bulk selection is disabled', 'buddypress' );
     238                                ?></label></td>
    230239                                <th class="manage-column column-title column-primary"><?php _e( 'Component', 'buddypress' ); ?></th>
    231240                                <th class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th>
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r10825 r10828  
    934934?>
    935935
    936         <label class="screen-reader-text" for="excerpt"><?php _e( 'Plain text email content', 'buddypress' ); ?></label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
     936        <label class="screen-reader-text" for="excerpt"><?php
     937                /* translators: accessibility text */
     938                _e( 'Plain text email content', 'buddypress' );
     939        ?></label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
    937940
    938941        <p><?php _e( 'Most email clients support HTML email. However, some people prefer to receive plain text email. Enter a plain text alternative version of your email here.', 'buddypress' ); ?></p>
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r10815 r10828  
    3535                                                <td>
    3636                                                        <fieldset>
    37                                                                 <legend class="screen-reader-text"><span><?php esc_html_e( 'Repair', 'buddypress' ) ?></span></legend>
     37                                                                <legend class="screen-reader-text"><span><?php
     38                                                                        /* translators: accessibility text */
     39                                                                        esc_html_e( 'Repair', 'buddypress' );
     40                                                                ?></span></legend>
    3841
    3942                                                                <?php foreach ( bp_admin_repair_list() as $item ) : ?>
  • trunk/src/bp-friends/bp-friends-screens.php

    r10587 r10828  
    123123                                <td></td>
    124124                                <td><?php _ex( 'A member sends you a friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
    125                                 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" id="notification-friends-friendship-request-yes" value="yes" <?php checked( $send_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-request-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    126                                 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" id="notification-friends-friendship-request-no" value="no" <?php checked( $send_requests, 'no', true ) ?>/><label for="notification-friends-friendship-request-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     125                                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" id="notification-friends-friendship-request-yes" value="yes" <?php checked( $send_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-request-yes" class="bp-screen-reader-text"><?php
     126                                        /* translators: accessibility text */
     127                                        _e( 'Yes, send email', 'buddypress' );
     128                                ?></label></td>
     129                                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" id="notification-friends-friendship-request-no" value="no" <?php checked( $send_requests, 'no', true ) ?>/><label for="notification-friends-friendship-request-no" class="bp-screen-reader-text"><?php
     130                                        /* translators: accessibility text */
     131                                        _e( 'No, do not send email', 'buddypress' );
     132                                ?></label></td>
    127133                        </tr>
    128134                        <tr id="friends-notification-settings-accepted">
    129135                                <td></td>
    130136                                <td><?php _ex( 'A member accepts your friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
    131                                 <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" id="notification-friends-friendship-accepted-yes" value="yes" <?php checked( $accept_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-accepted-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    132                                 <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" id="notification-friends-friendship-accepted-no" value="no" <?php checked( $accept_requests, 'no', true ) ?>/><label for="notification-friends-friendship-accepted-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     137                                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" id="notification-friends-friendship-accepted-yes" value="yes" <?php checked( $accept_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-accepted-yes" class="bp-screen-reader-text"><?php
     138                                        /* translators: accessibility text */
     139                                        _e( 'Yes, send email', 'buddypress' );
     140                                ?></label></td>
     141                                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" id="notification-friends-friendship-accepted-no" value="no" <?php checked( $accept_requests, 'no', true ) ?>/><label for="notification-friends-friendship-accepted-no" class="bp-screen-reader-text"><?php
     142                                        /* translators: accessibility text */
     143                                        _e( 'No, do not send email', 'buddypress' );
     144                                ?></label></td>
    133145                        </tr>
    134146
  • trunk/src/bp-groups/bp-groups-admin.php

    r10775 r10828  
    611611                                                                        <h2><?php _e( 'Name and Description', 'buddypress' ); ?></h2>
    612612                                                                        <div class="inside">
    613                                                                                 <label for="bp-groups-name" class="screen-reader-text"><?php _e( 'Group Name', 'buddypress' ); ?></label>
     613                                                                                <label for="bp-groups-name" class="screen-reader-text"><?php
     614                                                                                        /* translators: accessibility text */
     615                                                                                        _e( 'Group Name', 'buddypress' );
     616                                                                                ?></label>
    614617                                                                                <input type="text" name="bp-groups-name" id="bp-groups-name" value="<?php echo esc_attr( stripslashes( $group_name ) ) ?>" />
    615618                                                                                <div id="bp-groups-permalink-box">
     
    617620                                                                                </div>
    618621
    619                                                                                 <label for="bp-groups-description" class="screen-reader-text"><?php _e( 'Group Description', 'buddypress' ); ?></label>
     622                                                                                <label for="bp-groups-description" class="screen-reader-text"><?php
     623                                                                                        /* translators: accessibility text */
     624                                                                                        _e( 'Group Description', 'buddypress' );
     625                                                                                ?></label>
    620626                                                                                <?php wp_editor( stripslashes( $group->description ), 'bp-groups-description', array( 'media_buttons' => false, 'teeny' => true, 'textarea_rows' => 5, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ) ) ); ?>
    621627                                                                        </div>
     
    834840        ?>
    835841
    836         <label for="bp-groups-new-members" class="screen-reader-text"><?php _e( 'Add new members', 'buddypress' ); ?></label>
     842        <label for="bp-groups-new-members" class="screen-reader-text"><?php
     843                /* translators: accessibility text */
     844                _e( 'Add new members', 'buddypress' );
     845        ?></label>
    837846        <input name="bp-groups-new-members" id="bp-groups-new-members" class="bp-suggest-user" placeholder="<?php esc_attr_e( 'Enter a comma-separated list of user logins.', 'buddypress' ) ?>" />
    838847        <ul id="bp-groups-new-members-list"></ul>
     
    928937
    929938                                                <td class="urole-column">
    930                                                         <label for="bp-groups-role-<?php echo esc_attr( $type_user->ID ); ?>" class="screen-reader-text"><?php _e( 'Select group role for member', 'buddypress' ); ?></label>
     939                                                        <label for="bp-groups-role-<?php echo esc_attr( $type_user->ID ); ?>" class="screen-reader-text"><?php
     940                                                                /* translators: accessibility text */
     941                                                                _e( 'Select group role for member', 'buddypress' );
     942                                                        ?></label>
    931943                                                        <select class="bp-groups-role" id="bp-groups-role-<?php echo esc_attr( $type_user->ID ); ?>" name="bp-groups-role[<?php echo esc_attr( $type_user->ID ); ?>]">
    932944                                                                <optgroup label="<?php esc_attr_e( 'Roles', 'buddypress' ); ?>">
     
    10431055        ?>
    10441056
    1045         <label for="bp-groups-group-type" class="screen-reader-text"><?php esc_html_e( 'Select group type', 'buddypress' ); ?></label>
     1057        <label for="bp-groups-group-type" class="screen-reader-text"><?php
     1058                /* translators: accessibility text */
     1059                esc_html_e( 'Select group type', 'buddypress' );
     1060        ?></label>
    10461061        <select name="bp-groups-group-type" id="bp-groups-group-type">
    10471062                <option value="" <?php selected( '', $current_type ); ?>><?php /* translators: no option picked in select box */ esc_attr_e( '----', 'buddypress' ) ?></option>
  • trunk/src/bp-groups/bp-groups-screens.php

    r10820 r10828  
    14451445                                <td></td>
    14461446                                <td><?php _ex( 'A member invites you to join a group', 'group settings on notification settings page','buddypress' ) ?></td>
    1447                                 <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-yes" value="yes" <?php checked( $group_invite, 'yes', true ) ?>/><label for="notification-groups-invite-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    1448                                 <td class="no"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-no" value="no" <?php checked( $group_invite, 'no', true ) ?>/><label for="notification-groups-invite-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     1447                                <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-yes" value="yes" <?php checked( $group_invite, 'yes', true ) ?>/><label for="notification-groups-invite-yes" class="bp-screen-reader-text"><?php
     1448                                        /* translators: accessibility text */
     1449                                        _e( 'Yes, send email', 'buddypress' );
     1450                                ?></label></td>
     1451                                <td class="no"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-no" value="no" <?php checked( $group_invite, 'no', true ) ?>/><label for="notification-groups-invite-no" class="bp-screen-reader-text"><?php
     1452                                        /* translators: accessibility text */
     1453                                        _e( 'No, do not send email', 'buddypress' );
     1454                                ?></label></td>
    14491455                        </tr>
    14501456                        <tr id="groups-notification-settings-info-updated">
    14511457                                <td></td>
    14521458                                <td><?php _ex( 'Group information is updated', 'group settings on notification settings page', 'buddypress' ) ?></td>
    1453                                 <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-yes" value="yes" <?php checked( $group_update, 'yes', true ) ?>/><label for="notification-groups-group-updated-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    1454                                 <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-no" value="no" <?php checked( $group_update, 'no', true ) ?>/><label for="notification-groups-group-updated-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     1459                                <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-yes" value="yes" <?php checked( $group_update, 'yes', true ) ?>/><label for="notification-groups-group-updated-yes" class="bp-screen-reader-text"><?php
     1460                                        /* translators: accessibility text */
     1461                                        _e( 'Yes, send email', 'buddypress' );
     1462                                ?></label></td>
     1463                                <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-no" value="no" <?php checked( $group_update, 'no', true ) ?>/><label for="notification-groups-group-updated-no" class="bp-screen-reader-text"><?php
     1464                                        /* translators: accessibility text */
     1465                                        _e( 'No, do not send email', 'buddypress' );
     1466                                ?></label></td>
    14551467                        </tr>
    14561468                        <tr id="groups-notification-settings-promoted">
    14571469                                <td></td>
    14581470                                <td><?php _ex( 'You are promoted to a group administrator or moderator', 'group settings on notification settings page', 'buddypress' ) ?></td>
    1459                                 <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-yes" value="yes" <?php checked( $group_promo, 'yes', true ) ?>/><label for="notification-groups-admin-promotion-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    1460                                 <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-no" value="no" <?php checked( $group_promo, 'no', true ) ?>/><label for="notification-groups-admin-promotion-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     1471                                <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-yes" value="yes" <?php checked( $group_promo, 'yes', true ) ?>/><label for="notification-groups-admin-promotion-yes" class="bp-screen-reader-text"><?php
     1472                                        /* translators: accessibility text */
     1473                                        _e( 'Yes, send email', 'buddypress' );
     1474                                ?></label></td>
     1475                                <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-no" value="no" <?php checked( $group_promo, 'no', true ) ?>/><label for="notification-groups-admin-promotion-no" class="bp-screen-reader-text"><?php
     1476                                        /* translators: accessibility text */
     1477                                        _e( 'No, do not send email', 'buddypress' );
     1478                                ?></label></td>
    14611479                        </tr>
    14621480                        <tr id="groups-notification-settings-request">
    14631481                                <td></td>
    14641482                                <td><?php _ex( 'A member requests to join a private group for which you are an admin', 'group settings on notification settings page', 'buddypress' ) ?></td>
    1465                                 <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-yes" value="yes" <?php checked( $group_request, 'yes', true ) ?>/><label for="notification-groups-membership-request-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    1466                                 <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-no" value="no" <?php checked( $group_request, 'no', true ) ?>/><label for="notification-groups-membership-request-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     1483                                <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-yes" value="yes" <?php checked( $group_request, 'yes', true ) ?>/><label for="notification-groups-membership-request-yes" class="bp-screen-reader-text"><?php
     1484                                        /* translators: accessibility text */
     1485                                        _e( 'Yes, send email', 'buddypress' );
     1486                                ?></label></td>
     1487                                <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-no" value="no" <?php checked( $group_request, 'no', true ) ?>/><label for="notification-groups-membership-request-no" class="bp-screen-reader-text"><?php
     1488                                        /* translators: accessibility text */
     1489                                        _e( 'No, do not send email', 'buddypress' );
     1490                                ?></label></td>
    14671491                        </tr>
    14681492                        <tr id="groups-notification-settings-request-completed">
    14691493                                <td></td>
    14701494                                <td><?php _ex( 'Your request to join a group has been approved or denied', 'group settings on notification settings page', 'buddypress' ) ?></td>
    1471                                 <td class="yes"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-yes" value="yes" <?php checked( $group_request_completed, 'yes', true ) ?>/><label for="notification-groups-membership-request-completed-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    1472                                 <td class="no"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-no" value="no" <?php checked( $group_request_completed, 'no', true ) ?>/><label for="notification-groups-membership-request-completed-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     1495                                <td class="yes"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-yes" value="yes" <?php checked( $group_request_completed, 'yes', true ) ?>/><label for="notification-groups-membership-request-completed-yes" class="bp-screen-reader-text"><?php
     1496                                        /* translators: accessibility text */
     1497                                        _e( 'Yes, send email', 'buddypress' );
     1498                                ?></label></td>
     1499                                <td class="no"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-no" value="no" <?php checked( $group_request_completed, 'no', true ) ?>/><label for="notification-groups-membership-request-completed-no" class="bp-screen-reader-text"><?php
     1500                                        /* translators: accessibility text */
     1501                                        _e( 'No, do not send email', 'buddypress' );
     1502                                ?></label></td>
    14731503                        </tr>
    14741504
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r10825 r10828  
    11071107                ?>
    11081108
    1109                 <label for="bp-members-profile-member-type" class="screen-reader-text"><?php esc_html_e( 'Select member type', 'buddypress' ); ?></label>
     1109                <label for="bp-members-profile-member-type" class="screen-reader-text"><?php
     1110                        /* translators: accessibility text */
     1111                        esc_html_e( 'Select member type', 'buddypress' );
     1112                ?></label>
    11101113                <select name="bp-members-profile-member-type" id="bp-members-profile-member-type">
    1111                         <option value="" <?php selected( '', $current_type ); ?>><?php /* translators: no option picked in select box */ esc_attr_e( '----', 'buddypress' ) ?></option>
     1114                        <option value="" <?php selected( '', $current_type ); ?>><?php
     1115                                /* translators: no option picked in select box */
     1116                                esc_attr_e( '----', 'buddypress' );
     1117                        ?></option>
    11121118                        <?php foreach ( $types as $type ) : ?>
    11131119                                <option value="<?php echo esc_attr( $type->name ) ?>" <?php selected( $type->name, $current_type ) ?>><?php echo esc_html( $type->labels['singular_name'] ) ?></option>
  • trunk/src/bp-messages/bp-messages-screens.php

    r10745 r10828  
    217217                                <td></td>
    218218                                <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td>
    219                                 <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-yes" value="yes" <?php checked( $new_messages, 'yes', true ) ?>/><label for="notification-messages-new-messages-yes" class="bp-screen-reader-text"><?php _e( 'Yes, send email', 'buddypress' ); ?></label></td>
    220                                 <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-no" value="no" <?php checked( $new_messages, 'no', true ) ?>/><label for="notification-messages-new-messages-no" class="bp-screen-reader-text"><?php _e( 'No, do not send email', 'buddypress' ); ?></label></td>
     219                                <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-yes" value="yes" <?php checked( $new_messages, 'yes', true ) ?>/><label for="notification-messages-new-messages-yes" class="bp-screen-reader-text"><?php
     220                                        /* translators: accessibility text */
     221                                        _e( 'Yes, send email', 'buddypress' );
     222                                ?></label></td>
     223                                <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-no" value="no" <?php checked( $new_messages, 'no', true ) ?>/><label for="notification-messages-new-messages-no" class="bp-screen-reader-text"><?php
     224                                        /* translators: accessibility text */
     225                                        _e( 'No, do not send email', 'buddypress' );
     226                                ?></label></td>
    221227                        </tr>
    222228
  • trunk/src/bp-messages/bp-messages-template.php

    r10825 r10828  
    786786
    787787        <form action="" method="get" id="search-message-form">
    788                 <label for="messages_search" class="bp-screen-reader-text"><?php esc_html_e( 'Search Messages', 'buddypress' ); ?></label>
     788                <label for="messages_search" class="bp-screen-reader-text"><?php
     789                        /* translators: accessibility text */
     790                        esc_html_e( 'Search Messages', 'buddypress' );
     791                ?></label>
    789792                <input type="text" name="s" id="messages_search"<?php echo $search_placeholder . $search_value; ?> />
    790793                <input type="submit" class="button" id="messages_search_submit" name="messages_search_submit" value="<?php esc_html_e( 'Search', 'buddypress' ); ?>" />
     
    928931?>
    929932
    930         <label for="message-type-select" class="bp-screen-reader-text">
    931                 <?php _e( 'Select:', 'buddypress' ) ?>
    932          </label>
    933 
     933        <label for="message-type-select" class="bp-screen-reader-text"><?php
     934                /* translators: accessibility text */
     935                _e( 'Select:', 'buddypress' );
     936        ?></label>
    934937        <select name="message-type-select" id="message-type-select">
    935938                <option value=""><?php _e( 'Select', 'buddypress' ); ?></option>
     
    958961function bp_messages_bulk_management_dropdown() {
    959962        ?>
    960         <label class="bp-screen-reader-text" for="messages-select"><?php _e( 'Select Bulk Action', 'buddypress' ); ?></label>
     963        <label class="bp-screen-reader-text" for="messages-select"><?php
     964                _e( 'Select Bulk Action', 'buddypress' );
     965        ?></label>
    961966        <select name="messages_bulk_action" id="messages-select">
    962967                <option value="" selected="selected"><?php _e( 'Bulk Actions', 'buddypress' ); ?></option>
  • trunk/src/bp-notifications/bp-notifications-template.php

    r10817 r10828  
    10241024function bp_notifications_bulk_management_dropdown() {
    10251025        ?>
    1026         <label class="bp-screen-reader-text" for="notification-select"><?php _e( 'Select Bulk Action', 'buddypress' ); ?></label>
     1026        <label class="bp-screen-reader-text" for="notification-select"><?php
     1027                /* translators: accessibility text */
     1028                _e( 'Select Bulk Action', 'buddypress' );
     1029        ?></label>
    10271030        <select name="notification_bulk_action" id="notification-select">
    10281031                <option value="" selected="selected"><?php _e( 'Bulk Actions', 'buddypress' ); ?></option>
  • trunk/src/bp-xprofile/bp-xprofile-template.php

    r10825 r10828  
    929929         *    @type int             $user_id ID of the user to get field data for.
    930930         * }
    931     * @return mixed|void
     931        * @return mixed|void
    932932         */
    933933        function bp_get_profile_field_data( $args = '' ) {
     
    12611261         *    @type string $class        Class to apply to the field markup.
    12621262         * }
    1263     * @return string $retval
     1263        * @return string $retval
    12641264         */
    12651265        function bp_profile_get_visibility_radio_buttons( $args = '' ) {
     
    13721372                        <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    13731373
    1374                                 <label for="<?php echo esc_attr( 'field_' . $r['field_id'] ) ; ?>_visibility" class="bp-screen-reader-text"><?php _e( 'Select visibility', 'buddypress' ); ?></label>
     1374                                <label for="<?php echo esc_attr( 'field_' . $r['field_id'] ) ; ?>_visibility" class="bp-screen-reader-text"><?php
     1375                                        /* translators: accessibility text */
     1376                                        _e( 'Select visibility', 'buddypress' );
     1377                                ?></label>
    13751378                                <select class="<?php echo esc_attr( $r['class'] ); ?>" name="<?php echo esc_attr( 'field_' . $r['field_id'] ) ; ?>_visibility" id="<?php echo esc_attr( 'field_' . $r['field_id'] ) ; ?>_visibility">
    13761379
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r10798 r10828  
    100100                        do_action( bp_get_the_profile_field_errors_action() ); ?>
    101101
    102                         <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php esc_html_e( 'Select day', 'buddypress' ); ?></label>
     102                        <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
     103                                /* translators: accessibility text */
     104                                esc_html_e( 'Select day', 'buddypress' );
     105                        ?></label>
    103106                        <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    104107                                <?php bp_the_profile_field_options( array(
     
    108111                        </select>
    109112
    110                         <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php esc_html_e( 'Select month', 'buddypress' ); ?></label>
     113                        <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
     114                                /* translators: accessibility text */
     115                                esc_html_e( 'Select month', 'buddypress' );
     116                        ?></label>
    111117                        <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    112118                                <?php bp_the_profile_field_options( array(
     
    116122                        </select>
    117123
    118                         <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php esc_html_e( 'Select year', 'buddypress' ); ?></label>
     124                        <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
     125                                /* translators: accessibility text */
     126                                esc_html_e( 'Select year', 'buddypress' );
     127                        ?></label>
    119128                        <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    120129                                <?php bp_the_profile_field_options( array(
     
    275284                ) ); ?>
    276285
    277                 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php esc_html_e( 'Select day', 'buddypress' ); ?></label>
     286                <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php
     287                        /* translators: accessibility text */
     288                        esc_html_e( 'Select day', 'buddypress' );
     289                ?></label>
    278290                <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    279291                        <?php bp_the_profile_field_options( array( 'type' => 'day' ) ); ?>
    280292                </select>
    281293
    282                 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php esc_html_e( 'Select month', 'buddypress' ); ?></label>
     294                <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php
     295                        /* translators: accessibility text */
     296                        esc_html_e( 'Select month', 'buddypress' );
     297                ?></label>
    283298                <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    284299                        <?php bp_the_profile_field_options( array( 'type' => 'month' ) ); ?>
    285300                </select>
    286301
    287                 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php esc_html_e( 'Select year', 'buddypress' ); ?></label>
     302                <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php
     303                        /* translators: accessibility text */
     304                        esc_html_e( 'Select year', 'buddypress' );
     305                ?></label>
    288306                <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    289307                        <?php bp_the_profile_field_options( array( 'type' => 'year' ) ); ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

    r10417 r10828  
    184184                ) ); ?>
    185185
    186                 <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Select', 'buddypress' ); ?></label>
     186                <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
     187                        /* translators: accessibility text */
     188                        esc_html_e( 'Select', 'buddypress' );
     189                ?></label>
    187190                <select <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    188191                        <?php bp_the_profile_field_options(); ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php

    r10417 r10828  
    9595                ) ); ?>
    9696
    97                 <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Number field', 'buddypress' ); ?></label>
     97                <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
     98                        /* translators: accessibility text */
     99                        esc_html_e( 'Number field', 'buddypress' );
     100                ?></label>
    98101                <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    99102        <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

    r10417 r10828  
    165165                ?>
    166166
    167                 <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Select', 'buddypress' ); ?></label>
     167                <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
     168                        /* translators: accessibility text */
     169                        esc_html_e( 'Select', 'buddypress' );
     170                ?></label>
    168171                <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?>>
    169172                        <?php bp_the_profile_field_options(); ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

    r10417 r10828  
    9595                ) ); ?>
    9696
    97                 <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Textbox', 'buddypress' ); ?></label>
     97                <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
     98                        /* translators: accessibility text */
     99                        esc_html_e( 'Textbox', 'buddypress' );
     100                ?></label>
    98101                <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    99102
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php

    r10592 r10828  
    366366                                                <div id="<?php echo esc_attr( "{$type}_div{$j}" ); ?>" class="bp-option sortable">
    367367                                                        <span class="bp-option-icon grabber"></span>
    368                                                         <label for="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" class="screen-reader-text"><?php esc_html_e( 'Add an option', 'buddypress' ); ?></label>
     368                                                        <label for="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" class="screen-reader-text"><?php
     369                                                                /* translators: accessibility text */
     370                                                                esc_html_e( 'Add an option', 'buddypress' );
     371                                                        ?></label>
    369372                                                        <input type="text" name="<?php echo esc_attr( "{$type}_option[{$j}]" ); ?>" id="<?php echo esc_attr( "{$type}_option{$j}" ); ?>" value="<?php echo esc_attr( stripslashes( $options[$i]->name ) ); ?>" />
    370373                                                        <label for="<?php echo esc_attr( "{$type}_option{$default_name}" ); ?>">
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r10778 r10828  
    13151315                        <h2><?php echo esc_html_x( 'Description', 'XProfile admin edit field', 'buddypress' ); ?></h2>
    13161316                        <div class="inside">
    1317                                 <label for="description" class="screen-reader-text"><?php esc_html_e( 'Add description', 'buddypress' ); ?></label>
     1317                                <label for="description" class="screen-reader-text"><?php
     1318                                        /* translators: accessibility text */
     1319                                        esc_html_e( 'Add description', 'buddypress' );
     1320                                ?></label>
    13181321                                <textarea name="description" id="description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea>
    13191322                        </div>
     
    14681471
    14691472                                <p>
    1470                                         <label for="do-autolink" class="screen-reader-text"><?php esc_html_e( 'Autolink status for this field', 'buddypress' ); ?></label>
     1473                                        <label for="do-autolink" class="screen-reader-text"><?php
     1474                                                /* translators: accessibility text */
     1475                                                esc_html_e( 'Autolink status for this field', 'buddypress' );
     1476                                        ?></label>
    14711477                                        <select name="do_autolink" id="do-autolink">
    14721478                                                <option value="on" <?php selected( $this->get_do_autolink() ); ?>><?php esc_html_e( 'Enabled', 'buddypress' ); ?></option>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r10740 r10828  
    745745                                                                <h2><?php esc_html_e( 'Field Group Description', 'buddypress' ); ?></h2>
    746746                                                                <div class="inside">
    747                                                                         <label for="group_description" class="screen-reader-text"><?php esc_html_e( 'Add description', 'buddypress' ); ?></label>
     747                                                                        <label for="group_description" class="screen-reader-text"><?php
     748                                                                                /* translators: accessibility text */
     749                                                                                esc_html_e( 'Add description', 'buddypress' );
     750                                                                        ?></label>
    748751                                                                        <textarea name="group_description" id="group_description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea>
    749752                                                                </div>
Note: See TracChangeset for help on using the changeset viewer.