Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:00:36 AM (17 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/invites/index.php

    r12082 r12104  
    8484    <div class="action">
    8585        <# if ( undefined === data.is_sent || ( false === data.is_sent && true === data.can_edit ) ) { #>
    86             <button type="button" class="button invite-button group-add-remove-invite-button bp-tooltip bp-icons<# if ( data.selected ) { #> selected<# } #>" data-bp-tooltip="<# if ( data.selected ) { #><?php esc_attr_e( 'Disinvite', 'buddypress' ); ?><# } else { #><?php esc_attr_e( 'Invite', 'buddypress' ); ?><# } #>">
     86            <button type="button" class="button invite-button group-add-remove-invite-button bp-tooltip bp-icons<# if ( data.selected ) { #> selected<# } #>" data-bp-tooltip="<# if ( data.selected ) { #><?php esc_attr_e( 'Cancel invitation', 'buddypress' ); ?><# } else { #><?php echo esc_attr_x( 'Invite', 'button', 'buddypress' ); ?><# } #>">
    8787                <span class="icons" aria-hidden="true"></span>
    8888                <span class="bp-screen-reader-text">
    8989                    <# if ( data.selected ) { #>
    90                         <?php esc_html_e( 'Disinvite', 'buddypress' ); ?>
     90                        <?php echo esc_html_x( 'Cancel invitation', 'button', 'buddypress' ); ?>
    9191                    <# } else { #>
    92                         <?php esc_html_e( 'Invite', 'buddypress' ); ?>
     92                        <?php echo esc_html_x( 'Invite', 'button', 'buddypress' ); ?>
    9393                    <# } #>
    9494                </span>
     
    9797
    9898        <# if ( undefined !== data.can_edit && true === data.can_edit ) { #>
    99             <button type="button" class="button invite-button group-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'Disinvite', 'buddypress' ); ?>">
     99            <button type="button" class="button invite-button group-remove-invite-button bp-tooltip bp-icons" data-bp-tooltip="<?php echo esc_attr_x( 'Cancel invitation', 'button', 'buddypress' ); ?>">
    100100                <span class=" icons" aria-hidden="true"></span>
    101                 <span class="bp-screen-reader-text"><?php esc_html_e( 'Disinvite', 'buddypress' ); ?></span>
     101                <span class="bp-screen-reader-text"><?php echo esc_attr_x( 'Cancel invitation', 'button', 'buddypress' ); ?></span>
    102102            </button>
    103103        <# } #>
     
    114114<script type="text/html" id="tmpl-bp-invites-form">
    115115
    116     <label for="send-invites-control"><?php esc_attr_e( 'Optional: add a message to your invite.', 'buddypress' ); ?></label>
     116    <label for="send-invites-control"><?php esc_html_e( 'Optional: add a message to your invite.', 'buddypress' ); ?></label>
    117117    <textarea id="send-invites-control" class="bp-faux-placeholder-label"></textarea>
    118118
    119119    <div class="action">
    120         <button type="button" id="bp-invites-reset" class="button bp-secondary-action"><?php _ex( 'Cancel', 'Cancel invitation', 'buddypress' ); ?></button>
    121         <button type="button" id="bp-invites-send" class="button bp-primary-action"><?php _ex( 'Send', 'Send invitation', 'buddypress' ); ?></button>
     120        <button type="button" id="bp-invites-reset" class="button bp-secondary-action"><?php echo esc_html_x( 'Cancel', 'button', 'buddypress' ); ?></button>
     121        <button type="button" id="bp-invites-send" class="button bp-primary-action"><?php echo esc_html_x( 'Send', 'button', 'buddypress' ); ?></button>
    122122    </div>
    123123</script>
     
    127127        <div class="bp-search">
    128128            <form action="" method="get" id="group_invites_search_form" class="bp-invites-search-form" data-bp-search="{{data.scope}}">
    129                 <label for="group_invites_search" class="bp-screen-reader-text"><?php bp_nouveau_search_default_text( 'Search Members', false ); ?></label>
    130                 <input type="search" id="group_invites_search" placeholder="<?php esc_attr_e( 'Search', 'buddypress' ); ?>"/>
     129                <label for="group_invites_search" class="bp-screen-reader-text"><?php bp_nouveau_search_default_text( _x( 'Search Members', 'heading', 'buddypress' ), false ); ?></label>
     130                <input type="search" id="group_invites_search" placeholder="<?php echo esc_attr_x( 'Search', 'search placeholder text', 'buddypress' ); ?>"/>
    131131
    132132                <button type="submit" id="group_invites_search_submit" class="nouveau-search-submit">
    133133                    <span class="dashicons dashicons-search" aria-hidden="true"></span>
    134                     <span id="button-text" class="bp-screen-reader-text"><?php esc_html_e( 'Search', 'buddypress' ); ?></span>
     134                    <span id="button-text" class="bp-screen-reader-text"><?php echo esc_html_x( 'Search', 'button', 'buddypress' ); ?></span>
    135135                </button>
    136136            </form>
     
    141141<script type="text/html" id="tmpl-bp-invites-paginate">
    142142    <# if ( 1 !== data.page ) { #>
    143         <a href="#previous-page" id="bp-invites-prev-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Previous page', 'buddypress' ); ?>">
     143        <a href="#previous-page" id="bp-invites-prev-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Previous page', 'link', 'buddypress' ); ?>">
    144144            <span class="dashicons dashicons-arrow-left" aria-hidden="true"></span>
    145             <span class="bp-screen-reader-text"><?php esc_html_e( 'Previous page', 'buddypress' ); ?></span>
     145            <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Previous page', 'link', 'buddypress' ); ?></span>
    146146        </a>
    147147    <# } #>
    148148
    149149    <# if ( data.total_page !== data.page ) { #>
    150         <a href="#next-page" id="bp-invites-next-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php esc_attr_e( 'Next page', 'buddypress' ); ?>">
    151             <span class="bp-screen-reader-text"><?php esc_html_e( 'Next page', 'buddypress' ); ?></span>
     150        <a href="#next-page" id="bp-invites-next-page" class="button invite-button bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Next page', 'link', 'buddypress' ); ?>">
     151            <span class="bp-screen-reader-text"><?php echo esc_html_x( 'Next page', 'link', 'buddypress' ); ?></span>
    152152            <span class="dashicons dashicons-arrow-right" aria-hidden="true"></span>
    153153        </button>
Note: See TracChangeset for help on using the changeset viewer.