Skip to:
Content

BuddyPress.org


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

Add translator comments for screen reader text in component files.

See #6951.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.