Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:39:38 PM (5 years ago)
Author:
imath
Message:

BP Groups: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

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

    r12395 r12590  
    109109    $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    110110
     111    /* translators: 1: the user link. 2: the group link. */
    111112    $action = sprintf( esc_html__( '%1$s created the group %2$s', 'buddypress'), $user_link, $group_link );
    112113
     
    137138    $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    138139
     140    /* translators: 1: the user link. 2: the group link. */
    139141    $action = sprintf( esc_html__( '%1$s joined the group %2$s', 'buddypress' ), $user_link, $group_link );
    140142
     
    184186    // No changed details were found, so use a generic message.
    185187    if ( empty( $changed ) ) {
     188        /* translators: 1: the user link. 2: the group link. */
    186189        $action = sprintf( esc_html__( '%1$s updated details for the group %2$s', 'buddypress' ), $user_link, $group_link );
    187190
    188191    // Name and description changed - to keep things short, don't describe changes in detail.
    189192    } elseif ( isset( $changed['name'] ) && isset( $changed['description'] ) ) {
     193        /* translators: 1: the user link. 2: the group link. */
    190194        $action = sprintf( esc_html__( '%1$s changed the name and description of the group %2$s', 'buddypress' ), $user_link, $group_link );
    191195
    192196    // Name only.
    193197    } elseif ( ! empty( $changed['name']['old'] ) && ! empty( $changed['name']['new'] ) ) {
     198        /* translators: 1: the user link. 2: the group link. 3: the old group name. 4: the new group name. */
    194199        $action = sprintf( esc_html__( '%1$s changed the name of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['name']['old'] ), esc_html( $changed['name']['new'] ) );
    195200
    196201    // Description only.
    197202    } elseif ( ! empty( $changed['description']['old'] ) && ! empty( $changed['description']['new'] ) ) {
     203        /* translators: 1: the user link. 2: the group link. 3: the old group description. 4: the new group description. */
    198204        $action = sprintf( esc_html__( '%1$s changed the description of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['description']['old'] ), esc_html( $changed['description']['new'] ) );
    199205
    200206    } elseif ( ! empty( $changed['slug']['old'] ) && ! empty( $changed['slug']['new'] ) ) {
     207        /* translators: 1: the user link. 2: the group link. */
    201208        $action = sprintf( esc_html__( '%1$s changed the permalink of the group %2$s.', 'buddypress' ), $user_link, $group_link );
    202 
    203209    }
    204210
     
    230236
    231237    // Set the Activity update posted in a Group action.
    232     $action = sprintf( esc_html__( '%1$s posted an update in the group %2$s', 'buddypress' ), $user_link, $group_link );
     238    $action = sprintf(
     239        /* translators: 1: the user link. 2: the group link. */
     240        esc_html__( '%1$s posted an update in the group %2$s', 'buddypress' ),
     241        $user_link,
     242        $group_link
     243    );
    233244
    234245    /** This filter is documented in wp-includes/deprecated.php */
Note: See TracChangeset for help on using the changeset viewer.