Changeset 12587 for trunk/src/bp-blogs/bp-blogs-activity.php
- Timestamp:
- 03/28/2020 01:33:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-activity.php
r12544 r12587 128 128 $blog_name = bp_blogs_get_blogmeta( $activity->item_id, 'name' ); 129 129 130 $action = sprintf( esc_html__( '%s created the site %s', 'buddypress' ), bp_core_get_userlink( $activity->user_id ), '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 130 $action = sprintf( 131 /* translators: 1: the activity user link. 2: the blog link. */ 132 esc_html__( '%1$s created the site %2$s', 'buddypress' ), 133 bp_core_get_userlink( $activity->user_id ), 134 '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' 135 ); 131 136 132 137 // Legacy filter - requires the BP_Blogs_Blog object. … … 231 236 232 237 // Build the 'post link' part of the activity action string. 233 $post_link 238 $post_link = '<a href="' . esc_url( $post_url ) . '">' . esc_html( $post_title ) . '</a>'; 234 239 235 240 $user_link = bp_core_get_userlink( $activity->user_id ); … … 237 242 // Build the complete activity action string. 238 243 if ( is_multisite() ) { 239 $action = sprintf( esc_html__( '%1$s wrote a new post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 244 $action = sprintf( 245 /* translators: 1: the activity user link. 2: the post link. 3: the blog link. */ 246 esc_html_x( '%1$s wrote a new post, %2$s, on the site %3$s', '`new_blog_post` activity action', 'buddypress' ), 247 $user_link, 248 $post_link, 249 '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' 250 ); 240 251 } else { 241 $action = sprintf( esc_html__( '%1$s wrote a new post, %2$s', 'buddypress' ), $user_link, $post_link ); 252 $action = sprintf( 253 /* translators: 1: the activity user link. 2: the post link. */ 254 esc_html_x( '%1$s wrote a new post, %2$s', '`new_blog_post` activity action', 'buddypress' ), 255 $user_link, 256 $post_link 257 ); 242 258 } 243 259 … … 363 379 364 380 if ( is_multisite() ) { 365 $action = sprintf( esc_html__( '%1$s commented on the post, %2$s, on the site %3$s', 'buddypress' ), $user_link, $post_link, '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' ); 381 $action = sprintf( 382 /* translators: 1: the activity user link. 2: the post link. 3: the blog link. */ 383 esc_html_x( '%1$s commented on the post, %2$s, on the site %3$s', '`new_blog_comment` activity action', 'buddypress' ), 384 $user_link, 385 $post_link, 386 '<a href="' . esc_url( $blog_url ) . '">' . esc_html( $blog_name ) . '</a>' 387 ); 366 388 } else { 367 $action = sprintf( esc_html__( '%1$s commented on the post, %2$s', 'buddypress' ), $user_link, $post_link ); 389 $action = sprintf( 390 /* translators: 1: the activity user link. 2: the post link. */ 391 esc_html_x( '%1$s commented on the post, %2$s', '`new_blog_comment` activity action', 'buddypress' ), 392 $user_link, 393 $post_link 394 ); 368 395 } 369 396
Note: See TracChangeset
for help on using the changeset viewer.