Skip to:
Content

BuddyPress.org

Changeset 10827


Ignore:
Timestamp:
05/30/2016 06:25:12 AM (4 years ago)
Author:
mercime
Message:

Add translator comments for screen reader text in bp-legacy files.

See #6951.

Location:
trunk/src/bp-templates/bp-legacy/buddypress
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/entry.php

    r10265 r10827  
    121121                    <div class="ac-reply-content">
    122122                        <div class="ac-textarea">
    123                             <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"><?php _e( 'Comment', 'buddypress' ); ?></label>
     123                            <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"><?php
     124                                /* translators: accessibility text */
     125                                _e( 'Comment', 'buddypress' );
     126                            ?></label>
    124127                            <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    125128                        </div>
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/post-form.php

    r10184 r10827  
    3434    <div id="whats-new-content">
    3535        <div id="whats-new-textarea">
    36             <label for="whats-new" class="bp-screen-reader-text"><?php _e( 'Post what\'s new', 'buddypress' ); ?></label>
     36            <label for="whats-new" class="bp-screen-reader-text"><?php
     37                /* translators: accessibility text */
     38                _e( 'Post what\'s new', 'buddypress' );
     39            ?></label>
    3740            <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    3841                <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
     
    5154                    <?php _e( 'Post in', 'buddypress' ); ?>:
    5255
    53                     <label for="whats-new-post-in" class="bp-screen-reader-text"><?php _e( 'Post in', 'buddypress' ); ?></label>
     56                    <label for="whats-new-post-in" class="bp-screen-reader-text"><?php
     57                        /* translators: accessibility text */
     58                        _e( 'Post in', 'buddypress' );
     59                    ?></label>
    5460                    <select id="whats-new-post-in" name="whats-new-post-in">
    5561                        <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
  • trunk/src/bp-templates/bp-legacy/buddypress/assets/_attachments/uploader.php

    r10181 r10827  
    2323                    <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
    2424                    <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>
    25                     <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php esc_html_e( 'Select your File', 'buddypress' ); ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
     25                    <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
     26                        /* translators: accessibility text */
     27                        esc_html_e( 'Select your File', 'buddypress' );
     28                    ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
    2629                </div>
    2730            </div>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r10181 r10827  
    201201
    202202                        <p>
    203                             <label for="file" class="bp-screen-reader-text"><?php _e( 'Select an image', 'buddypress' ); ?></label>
     203                            <label for="file" class="bp-screen-reader-text"><?php
     204                                /* translators: accessibility text */
     205                                _e( 'Select an image', 'buddypress' );
     206                            ?></label>
    204207                            <input type="file" name="file" id="file" />
    205208                            <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r10562 r10827  
    168168
    169169            <p>
    170                 <label for="file" class="bp-screen-reader-text"><?php _e( 'Select an image', 'buddypress' ); ?></label>
     170                <label for="file" class="bp-screen-reader-text"><?php
     171                    /* translators: accessibility text */
     172                    _e( 'Select an image', 'buddypress' );
     173                ?></label>
    171174                <input type="file" name="file" id="file" />
    172175                <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/edit.php

    r10181 r10827  
    109109                do_action( 'bp_group_before_edit_forum_post' ); ?>
    110110
    111                 <label for="post_text" class="bp-screen-reader-text"><?php _e( 'Edit text', 'buddypress' ); ?></label>
     111                <label for="post_text" class="bp-screen-reader-text"><?php
     112                    /* translators: accessibility text */
     113                    _e( 'Edit text', 'buddypress' );
     114                ?></label>
    112115                <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea>
    113116
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php

    r10181 r10827  
    187187                    <h4><?php _e( 'Add a reply:', 'buddypress' ); ?></h4>
    188188
    189                     <label for="reply_text" class="bp-screen-reader-text"><?php _e( 'Reply', 'buddypress' ); ?></label>
     189                    <label for="reply_text" class="bp-screen-reader-text"><?php
     190                        /* translators: accessibility text */
     191                        _e( 'Reply', 'buddypress' );
     192                    ?></label>
    190193                    <textarea name="reply_text" id="reply_text"></textarea>
    191194
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    r10564 r10827  
    5252            <thead>
    5353                <tr>
    54                     <th scope="col" class="thread-checkbox bulk-select-all"><input id="select-all-messages" type="checkbox"><label class="bp-screen-reader-text" for="select-all-messages"><?php _e( 'Select all', 'buddypress' ); ?></label></th>
     54                    <th scope="col" class="thread-checkbox bulk-select-all"><input id="select-all-messages" type="checkbox"><label class="bp-screen-reader-text" for="select-all-messages"><?php
     55                        /* translators: accessibility text */
     56                        _e( 'Select all', 'buddypress' );
     57                    ?></label></th>
    5558                    <th scope="col" class="thread-from"><?php _e( 'From', 'buddypress' ); ?></th>
    5659                    <th scope="col" class="thread-info"><?php _e( 'Subject', 'buddypress' ); ?></th>
     
    6972
    7073                    <?php if ( bp_is_active( 'messages', 'star' ) ) : ?>
    71                         <th scope="col" class="thread-star"><span class="message-action-star"><span class="icon"></span> <span class="screen-reader-text"><?php _e( 'Star', 'buddypress' ); ?></span></span></th>
     74                        <th scope="col" class="thread-star"><span class="message-action-star"><span class="icon"></span> <span class="screen-reader-text"><?php
     75                            /* translators: accessibility text */
     76                            _e( 'Star', 'buddypress' );
     77                        ?></span></span></th>
    7278                    <?php endif; ?>
    7379
     
    8288                    <tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread<?php else: ?> read<?php endif; ?>">
    8389                        <td class="bulk-select-check">
    84                             <label for="bp-message-thread-<?php bp_message_thread_id(); ?>"><input type="checkbox" name="message_ids[]" id="bp-message-thread-<?php bp_message_thread_id(); ?>" class="message-check" value="<?php bp_message_thread_id(); ?>" /><span class="bp-screen-reader-text"><?php _e( 'Select this message', 'buddypress' ); ?></span></label>
     90                            <label for="bp-message-thread-<?php bp_message_thread_id(); ?>"><input type="checkbox" name="message_ids[]" id="bp-message-thread-<?php bp_message_thread_id(); ?>" class="message-check" value="<?php bp_message_thread_id(); ?>" /><span class="bp-screen-reader-text"><?php
     91                                /* translators: accessibility text */
     92                                _e( 'Select this message', 'buddypress' );
     93                            ?></span></label>
    8594                        </td>
    8695
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r10564 r10827  
    4545
    4646            <?php
    47            
     47
    4848            /**
    4949             * Fires after the action links in the header of a single message thread.
     
    120120                    do_action( 'bp_before_message_reply_box' ); ?>
    121121
    122                     <label for="message_content" class="bp-screen-reader-text"><?php _e( 'Reply to Message', 'buddypress' ); ?></label>
     122                    <label for="message_content" class="bp-screen-reader-text"><?php
     123                        /* translators: accessibility text */
     124                        _e( 'Reply to Message', 'buddypress' );
     125                    ?></label>
    123126                    <textarea name="content" id="message_content" rows="15" cols="40"></textarea>
    124127
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php

    r10250 r10827  
    1313            <tr>
    1414                <th class="icon"></th>
    15                 <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"><label class="bp-screen-reader-text" for="select-all-notifications"><?php _e( 'Select all', 'buddypress' ); ?></label></th>
     15                <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"><label class="bp-screen-reader-text" for="select-all-notifications"><?php
     16                    /* translators: accessibility text */
     17                    _e( 'Select all', 'buddypress' );
     18                ?></label></th>
    1619                <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
    1720                <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
     
    2629                <tr>
    2730                    <td></td>
    28                     <td class="bulk-select-check"><label for="<?php bp_the_notification_id(); ?>"><input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"><span class="bp-screen-reader-text"><?php _e( 'Select this notification', 'buddypress' ); ?></span></label></td>
     31                    <td class="bulk-select-check"><label for="<?php bp_the_notification_id(); ?>"><input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"><span class="bp-screen-reader-text"><?php
     32                        /* translators: accessibility text */
     33                        _e( 'Select this notification', 'buddypress' );
     34                    ?></span></label></td>
    2935                    <td class="notification-description"><?php bp_the_notification_description();  ?></td>
    3036                    <td class="notification-since"><?php bp_the_notification_time_since();   ?></td>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php

    r10734 r10827  
    3232
    3333            <p id="avatar-upload">
    34                 <label for="file" class="bp-screen-reader-text"><?php _e( 'Select an image', 'buddypress' ); ?></label>
     34                <label for="file" class="bp-screen-reader-text"><?php
     35                    /* translators: accessibility text */
     36                    _e( 'Select an image', 'buddypress' );
     37                ?></label>
    3538                <input type="file" name="file" id="file" />
    3639                <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r10181 r10827  
    2525    <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small password-entry" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<?php _e( 'New Password', 'buddypress' ); ?><br />
    2626    <div id="pass-strength-result"></div>
    27     <label for="pass2" class="bp-screen-reader-text"><?php _e( 'Repeat New Password', 'buddypress' ); ?></label>
     27    <label for="pass2" class="bp-screen-reader-text"><?php
     28        /* translators: accessibility text */
     29        _e( 'Repeat New Password', 'buddypress' );
     30    ?></label>
    2831    <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ); ?>
    2932
Note: See TracChangeset for help on using the changeset viewer.