Skip to:
Content

BuddyPress.org


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

Templates, Nouveau: string improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php

    r12082 r12104  
    312312                                'link_text' => sprintf(
    313313                                        '<span class="bp-screen-reader-text">%1$s</span>',
    314                                         esc_html__( 'View Conversation', 'buddypress' )
     314                                        __( 'View Conversation', 'buddypress' )
    315315                                ),
    316316                        );
     
    340340                                        'id'              => 'acomment-comment-' . $activity_id,
    341341                                        'class'           => 'button acomment-reply bp-primary-action bp-tooltip',
    342                                         'data-bp-tooltip' => __( 'Comment', 'buddypress' ),
     342                                        'data-bp-tooltip' => _x( 'Comment', 'button', 'buddypress' ),
    343343                                        'aria-expanded'   => 'false',
    344344                                ),
    345345                                'link_text'  => sprintf(
    346346                                        '<span class="bp-screen-reader-text">%1$s</span> <span class="comment-count">%2$s</span>',
    347                                         esc_html__( 'Comment', 'buddypress' ),
     347                                        _x( 'Comment', 'link', 'buddypress' ),
    348348                                        esc_html( bp_activity_get_comment_count() )
    349349                                ),
     
    454454                                'link_class'      => 'button item-button bp-secondary-action bp-tooltip delete-activity confirm',
    455455                                'link_rel'        => 'nofollow',
    456                                 'data_bp_tooltip' => __( 'Delete', 'buddypress' ),
    457                                 'link_text'       => __( 'Delete', 'buddypress' ),
     456                                'data_bp_tooltip' => _x( 'Delete', 'button', 'buddypress' ),
     457                                'link_text'       => _x( 'Delete', 'button', 'buddypress' ),
    458458                                'link_href'       => bp_get_activity_delete_url(),
    459459                        );
     
    499499                                'button_attr'       => array(
    500500                                        'class'           => 'bp-secondary-action spam-activity confirm button item-button bp-tooltip',
    501                                         'id'              =>  'activity_make_spam_' . $activity_id,
    502                                         'data-bp-tooltip' =>  __( 'Spam', 'buddypress' ),
     501                                        'id'              => 'activity_make_spam_' . $activity_id,
     502                                        'data-bp-tooltip' => _x( 'Spam', 'button', 'buddypress' ),
    503503                                        ),
    504504                                'link_text'  => sprintf(
    505505                                        /** @todo: use a specific css rule for this *************************************************************/
    506506                                        '<span class="dashicons dashicons-flag" style="color:#a00;vertical-align:baseline;width:18px;height:18px" aria-hidden="true"></span><span class="bp-screen-reader-text">%s</span>',
    507                                         esc_html__( 'Spam', 'buddypress' )
     507                                        esc_html_x( 'Spam', 'button', 'buddypress' )
    508508                                ),
    509509                        );
     
    795795                                'parent_attr'       => $parent_attr,
    796796                                'button_element'    => $button_element,
    797                                 'link_text'         => __( 'Reply', 'buddypress' ),
    798                                 'button_attr'       =>  array(
     797                                'link_text'         => _x( 'Reply', 'link', 'buddypress' ),
     798                                'button_attr'       => array(
    799799                                        'class' => "acomment-reply bp-primary-action",
    800800                                        'id'    => sprintf( 'acomment-reply-%1$s-from-%2$s', $activity_id, $activity_comment_id ),
     
    809809                                'parent_attr'       => $parent_attr,
    810810                                'button_element'    => $button_element,
    811                                 'link_text'         => __( 'Delete', 'buddypress' ),
     811                                'link_text'         => _x( 'Delete', 'link', 'buddypress' ),
    812812                                'button_attr'       => array(
    813813                                        'class' => 'delete acomment-delete confirm bp-secondary-action',
    814814                                        'rel'   => 'nofollow',
    815                                         ),
     815                                ),
    816816                        ),
    817817                );
     
    836836                                'parent_attr'       => $parent_attr,
    837837                                'button_element'    => $button_element,
    838                                 'link_text'         => __( 'Spam', 'buddypress' ),
     838                                'link_text'         => _x( 'Spam', 'link', 'buddypress' ),
    839839                                'button_attr'       => array(
    840840                                        'id'     => "activity_make_spam_{$activity_comment_id}",
Note: See TracChangeset for help on using the changeset viewer.