Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:00:36 AM (15 months ago)
Author:
djpaul
Message:

Templates, Nouveau: string improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    r12082 r12104  
    3636
    3737    <div class="submit">
    38         <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php esc_attr_e( 'Send', 'buddypress' ); ?>"/>
    39         <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php esc_attr_e( 'Reset', 'buddypress' ); ?>"/>
     38        <input type="button" id="bp-messages-send" class="button bp-primary-action" value="<?php echo esc_attr_x( 'Send', 'button', 'buddypress' ); ?>"/>
     39        <input type="button" id="bp-messages-reset" class="text-button small bp-secondary-action" value="<?php echo esc_attr_x( 'Reset', 'form reset button', 'buddypress' ); ?>"/>
    4040    </div>
    4141</script>
     
    6060        )
    6161    );
     62
    6263    // Remove the temporary filter on editor buttons
    6364    remove_filter( 'mce_buttons', 'bp_nouveau_messages_mce_buttons', 10, 1 );
     
    6970        <button id="bp-messages-prev-page"class="button messages-button">
    7071            <span class="dashicons dashicons-arrow-left"></span>
    71             <span class="bp-screen-reader-text"><?php esc_html_e( 'Prev', 'buddypress' ); ?></span>
     72            <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span>
    7273        </button>
    7374    <# } #>
     
    7677        <button id="bp-messages-next-page"class="button messages-button">
    7778            <span class="dashicons dashicons-arrow-right"></span>
    78             <span class="bp-screen-reader-text"><?php esc_html_e( 'Next', 'buddypress' ); ?></span>
     79            <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span>
    7980        </button>
    8081    <# } #>
     
    8889                    <?php _e( 'Search Messages', 'buddypress' ); ?>
    8990                </label>
    90                 <input type="search" id="user_messages_search" placeholder="<?php esc_attr_e( 'Search', 'buddypress' ); ?>"/>
     91                <input type="search" id="user_messages_search" placeholder="<?php echo esc_attr_x( 'Search', 'search placeholder text', 'buddypress' ); ?>"/>
    9192                <button type="submit" id="user_messages_search_submit">
    9293                    <span class="dashicons dashicons-search" aria-hidden="true"></span>
    93                     <span class="bp-screen-reader-text"><?php esc_html_e( 'Search', 'buddypress' ); ?></span>
     94                    <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Search', 'button', 'buddypress' ); ?></span>
    9495                </button>
    9596            </form>
     
    114115            <span class="select-arrow" aria-hidden="true"></span>
    115116        </div>
    116         <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr( 'Apply', 'buddypress' ); ?>">
     117        <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr_x( 'Apply', 'button', 'buddypress' ); ?>">
    117118            <span class="dashicons dashicons-yes" aria-hidden="true"></span>
    118             <span class="bp-screen-reader-text"><?php esc_html_e( 'Apply', 'buddypress' ); ?></span>
     119            <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Apply', 'button', 'buddypress' ); ?></span>
    119120        </button>
    120121    </div>
     
    302303                    <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
    303304
    304                     <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>
     305                    <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong>
    305306                </div>
    306307
     
    319320
    320321                <div class="submit">
    321                     <input type="submit" name="send" value="<?php esc_attr_e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/>
     322                    <input type="submit" name="send" value="<?php echo esc_attr_x( 'Send Reply', 'button', 'buddypress' ); ?>" id="send_reply_button"/>
    322323                </div>
    323324
Note: See TracChangeset for help on using the changeset viewer.