Skip to:
Content

BuddyPress.org

Changeset 10882


Ignore:
Timestamp:
06/12/2016 09:12:49 PM (8 years ago)
Author:
mercime
Message:

Add translator comments for screen reader text in admin.

Fixes #6951.

Location:
trunk/src
Files:
10 edited

Legend:

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

    r10853 r10882  
    10441044                        <h3 id="bp-replyhead"><?php _e( 'Reply to Activity', 'buddypress' ); ?></h3>
    10451045                        <label for="bp-activities" class="screen-reader-text"><?php
    1046                                 /* translators: accessibility text */
    1047                                 _e( 'Reply', 'buddypress' );
    1048                             ?></label>
     1046                            /* translators: accessibility text */
     1047                            _e( 'Reply', 'buddypress' );
     1048                        ?></label>
    10491049                        <?php wp_editor( '', 'bp-activities', array( 'dfw' => false, 'media_buttons' => false, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ), 'tinymce' => false, ) ); ?>
    10501050
  • trunk/src/bp-activity/classes/class-bp-activity-list-table.php

    r10828 r10882  
    498498     */
    499499    function column_cb( $item ) {
     500        /* translators: accessibility text */
    500501        printf( '<label class="screen-reader-text" for="aid-%1$d">' . __( 'Select activity item %1$d', 'buddypress' ) . '</label><input type="checkbox" name="aid[]" value="%1$d" id="aid-%1$d" />', $item['id'] );
    501502    }
  • trunk/src/bp-activity/classes/class-bp-activity-oembed-extension.php

    r10849 r10882  
    312312                printf(
    313313                    _n(
     314                        /* translators: accessibility text */
    314315                        '%s <span class="screen-reader-text">Comment</span>',
     316                        /* translators: accessibility text */
    315317                        '%s <span class="screen-reader-text">Comments</span>',
    316318                        $count,
  • trunk/src/bp-core/admin/bp-core-admin-components.php

    r10828 r10882  
    197197                            <?php if ( !in_array( $name, array( 'core', 'members' ) ) ) : ?>
    198198
    199                                 <input type="checkbox" id="<?php echo esc_attr( "bp_components[$name]" ); ?>" name="<?php echo esc_attr( "bp_components[$name]" ); ?>" value="1"<?php checked( isset( $active_components[esc_attr( $name )] ) ); ?> /><label for="<?php echo esc_attr( "bp_components[$name]" ); ?>" class="screen-reader-text"><?php printf( __( 'Select %s', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label>
     199                                <input type="checkbox" id="<?php echo esc_attr( "bp_components[$name]" ); ?>" name="<?php echo esc_attr( "bp_components[$name]" ); ?>" value="1"<?php checked( isset( $active_components[esc_attr( $name )] ) ); ?> /><label for="<?php echo esc_attr( "bp_components[$name]" ); ?>" class="screen-reader-text"><?php
     200                                    /* translators: accessibility text */
     201                                    printf( __( 'Select %s', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label>
    200202
    201203                            <?php else : ?>
    202204
    203                                 <input type="checkbox" id="<?php echo esc_attr( "bp_components[$name]" ); ?>" name="<?php echo esc_attr( "bp_components[$name]" ); ?>" value="1" checked="checked" disabled><label for="<?php echo esc_attr( "bp_components[$name]" ); ?>" class="screen-reader-text"><?php printf( __( '%s is a required component', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label>
     205                                <input type="checkbox" id="<?php echo esc_attr( "bp_components[$name]" ); ?>" name="<?php echo esc_attr( "bp_components[$name]" ); ?>" value="1" checked="checked" disabled><label for="<?php echo esc_attr( "bp_components[$name]" ); ?>" class="screen-reader-text"><?php
     206                                    /* translators: accessibility text */
     207                                    printf( __( '%s is a required component', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label>
    204208
    205209                            <?php endif; ?>
  • trunk/src/bp-groups/classes/class-bp-groups-list-table.php

    r10776 r10882  
    429429     */
    430430    public function column_cb( $item = array() ) {
     431        /* translators: accessibility text */
    431432        printf( '<label class="screen-reader-text" for="gid-%1$d">' . __( 'Select group %1$d', 'buddypress' ) . '</label><input type="checkbox" name="gid[]" value="%1$d" id="gid-%1$d" />', $item['id'] );
    432433    }
  • trunk/src/bp-members/classes/class-bp-members-list-table.php

    r10712 r10882  
    261261    public function column_cb( $signup_object = null ) {
    262262    ?>
    263         <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php printf( esc_html__( 'Select user: %s', 'buddypress' ), $signup_object->user_login ); ?></label>
     263        <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php
     264            /* translators: accessibility text */
     265            printf( esc_html__( 'Select user: %s', 'buddypress' ), $signup_object->user_login );
     266        ?></label>
    264267        <input type="checkbox" id="signup_<?php echo intval( $signup_object->id ) ?>" name="allsignups[]" value="<?php echo esc_attr( $signup_object->id ) ?>" />
    265268        <?php
  • trunk/src/bp-members/classes/class-bp-members-ms-list-table.php

    r10711 r10882  
    254254    public function column_cb( $signup_object = null ) {
    255255    ?>
    256         <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php printf( esc_html__( 'Select user: %s', 'buddypress' ), $signup_object->user_login ); ?></label>
     256        <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php printf(
     257            /* translators: accessibility text */
     258            esc_html__( 'Select user: %s', 'buddypress' ), $signup_object->user_login );
     259        ?></label>
    257260        <input type="checkbox" id="signup_<?php echo intval( $signup_object->id ) ?>" name="allsignups[]" value="<?php echo esc_attr( $signup_object->id ) ?>" />
    258261        <?php
  • trunk/src/bp-messages/bp-messages-template.php

    r10828 r10882  
    582582
    583583        return sprintf(
     584            /* translators: 1: total number, 2: accessibility text: number of unread messages */
    584585            '<span class="thread-count">(%1$s)</span> <span class="bp-screen-reader-text">%2$s</span>',
    585586            number_format_i18n( $total ),
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r10825 r10882  
    187187                            <legend class="screen-reader-text"><?php
    188188                            /** This filter is documented in bp-xprofile/bp-xprofile-template.php */
     189                            /* translators: accessibility text */
    189190                            printf( esc_html__( 'Fields for "%s" Group', 'buddypress' ), apply_filters( 'bp_get_the_profile_group_name', $group->name ) );
    190191                            ?></legend>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r10434 r10882  
    9898        ) ); ?>
    9999
    100         <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'URL', 'buddypress' ); ?></label>
     100        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
     101            /* translators: accessibility text */
     102            esc_html_e( 'URL', 'buddypress' );
     103        ?></label>
    101104        <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    102105
Note: See TracChangeset for help on using the changeset viewer.