Skip to:
Content

BuddyPress.org


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

BP Activity: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

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

    r12542 r12586  
    15241524 */
    15251525function bp_activity_format_activity_action_activity_update( $action, $activity ) {
    1526     $action = sprintf( esc_html__( '%s posted an update', 'buddypress' ), bp_core_get_userlink( $activity->user_id ) );
     1526    $action = sprintf(
     1527        /* translators: %s: the activity author user link */
     1528        esc_html__( '%s posted an update', 'buddypress' ),
     1529        bp_core_get_userlink( $activity->user_id )
     1530    );
    15271531
    15281532    /**
     
    15471551 */
    15481552function bp_activity_format_activity_action_activity_comment( $action, $activity ) {
    1549     $action = sprintf( esc_html__( '%s posted a new activity comment', 'buddypress' ), bp_core_get_userlink( $activity->user_id ) );
     1553    $action = sprintf(
     1554        /* translators: %s: the activity author user link */
     1555        esc_html__( '%s posted a new activity comment', 'buddypress' ),
     1556        bp_core_get_userlink( $activity->user_id )
     1557    );
    15501558
    15511559    /**
     
    15981606            $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action_ms, $user_link, esc_url( $post_url ), $blog_link );
    15991607        } else {
    1600 
     1608            /* translators: 1: the activity author user link. 2: the post link. 3: the blog link. */
    16011609            $action = sprintf( esc_html_x( '%1$s wrote a new %2$s, on the site %3$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_link, $blog_link );
    16021610        }
     
    16051613            $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_action, $user_link, $post_url );
    16061614        } else {
     1615            /* translators: 1: the activity author user link. 2: the post link. */
    16071616            $action = sprintf( esc_html_x( '%1$s wrote a new %2$s', 'Activity Custom Post Type post action', 'buddypress' ), $user_link, $post_link );
    16081617        }
     
    16511660            $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_comment_action_ms, $user_link, $activity->primary_link, $blog_link );
    16521661        } else {
     1662            /* translators: 1: the activity author user link. 2: the post link. 3: the blog link. */
    16531663            $action = sprintf( esc_html_x( '%1$s commented on the %2$s, on the site %3$s', 'Activity Custom Post Type comment action', 'buddypress' ), $user_link, $post_link, $blog_link );
    16541664        }
     
    16571667            $action = sprintf( $bp->activity->track[ $activity->type ]->new_post_type_comment_action, $user_link, $activity->primary_link );
    16581668        } else {
     1669            /* translators: 1: the activity author user link. 2: the post link. */
    16591670            $action = sprintf( esc_html_x( '%1$s commented on the %2$s', 'Activity Custom Post Type post comment action', 'buddypress' ), $user_link, $post_link );
    16601671        }
Note: See TracChangeset for help on using the changeset viewer.