Changeset 13185
- Timestamp:
- 12/12/2021 03:14:40 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-blocks.php
r13140 r13185 96 96 $link = trailingslashit( bp_core_get_user_domain( $user_id ) . bp_get_friends_slug() ); 97 97 98 /* translators: %s is the member's displayname */98 /* translators: %s: member name */ 99 99 $title = sprintf( __( '%s\'s Friends', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ); 100 100 … … 165 165 $extra = sprintf( _n( '%s friend', '%s friends', $user->total_friend_count, 'buddypress' ), number_format_i18n( $user->total_friend_count ) ); 166 166 } else { 167 /* translators: %s: a human time diff.*/167 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 168 168 $extra = sprintf( __( 'Active %s', 'buddypress' ), bp_core_time_since( $user->last_activity ) ); 169 169 } -
trunk/src/bp-groups/bp-groups-blocks.php
r13140 r13185 440 440 $extra = sprintf( _n( '%s member', '%s members', $count, 'buddypress' ), bp_core_number_format( $count ) ); 441 441 } else { 442 /* translators: %s: a human time diff.*/442 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 443 443 $extra = sprintf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active( $group ) ); 444 444 } -
trunk/src/bp-groups/bp-groups-functions.php
r13184 r13185 2267 2267 2268 2268 if ( ! empty( $membership_id ) ){ 2269 /* translators: 1: the name of the method. 2: the name of the file. */ 2269 2270 _deprecated_argument( __METHOD__, '5.0.0', sprintf( __( 'Argument `membership_id` passed to %1$s is deprecated. See the inline documentation at %2$s for more details.', 'buddypress' ), __METHOD__, __FILE__ ) ); 2270 2271 } … … 2304 2305 function groups_delete_membership_request( $membership_id, $user_id = 0, $group_id = 0 ) { 2305 2306 if ( ! empty( $membership_id ) ){ 2306 /* translators: 1: method name. 2: file name. */2307 /* translators: 1: the name of the method. 2: the name of the file. */ 2307 2308 _deprecated_argument( __METHOD__, '5.0.0', sprintf( __( 'Argument `membership_id` passed to %1$s is deprecated. See the inline documentation at %2$s for more details.', 'buddypress' ), __METHOD__, __FILE__ ) ); 2308 2309 } -
trunk/src/bp-groups/bp-groups-template.php
r13184 r13185 2223 2223 $count = (int) $group->total_member_count; 2224 2224 $count_string = sprintf( 2225 / / translators: %s: total member count for the group.2225 /* translators: %s is the number of Group members */ 2226 2226 _n( '%s member', '%s members', $count, 'buddypress' ), 2227 2227 bp_core_number_format( $count ) … … 4080 4080 'type' => 'full', 4081 4081 'email' => $members_template->member->user_email, 4082 /* translators: %s: member name */ 4082 4083 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ) 4083 4084 ) … … 4122 4123 'type' => 'thumb', 4123 4124 'email' => $members_template->member->user_email, 4125 /* translators: %s: member name */ 4124 4126 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ) 4125 4127 ) … … 4166 4168 'type' => 'thumb', 4167 4169 'email' => $members_template->member->user_email, 4170 /* translators: %s: member name */ 4168 4171 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $members_template->member->display_name ), 4169 4172 'width' => absint( $width ), … … 5777 5780 * @param string $value HTML markup for the user's avatar thumbnail. 5778 5781 */ 5779 echo apply_filters( 'bp_group_request_user_avatar_thumb', bp_core_fetch_avatar( array( 'item_id' => $requests_template->request->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $requests_template->request->user_id ) ) ) ) ); 5782 echo apply_filters( 5783 'bp_group_request_user_avatar_thumb', 5784 bp_core_fetch_avatar( 5785 array( 5786 'item_id' => $requests_template->request->user_id, 5787 'type' => 'thumb', 5788 /* translators: %s: member name */ 5789 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $requests_template->request->user_id ) ) 5790 ) 5791 ) 5792 ); 5780 5793 } 5781 5794 -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r13184 r13185 207 207 '1.6.0', 208 208 sprintf( 209 /* translators: 1: the name of the method. 2: the name of the file. */209 /* translators: 1: the name of the function. 2: the name of the file. */ 210 210 esc_html__( '%1$s no longer accepts arguments. See the inline documentation at %2$s for more details.', 'buddypress' ), 211 211 __METHOD__, -
trunk/src/bp-members/bp-members-blocks.php
r13140 r13185 458 458 $extra = sprintf( _n( '%s friend', '%s friends', $user->total_friend_count, 'buddypress' ), number_format_i18n( $user->total_friend_count ) ); 459 459 } else { 460 /* translators: %s: a human time diff.*/460 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 461 461 $extra = sprintf( __( 'Active %s', 'buddypress' ), bp_core_time_since( $user->last_activity ) ); 462 462 } -
trunk/src/bp-members/bp-members-notifications.php
r13168 r13185 72 72 $amount = 'multiple'; 73 73 74 /* translators: %d: is the number of people who requested site membership */ 74 75 $text = sprintf( __( '%d people have requested site membership.', 'buddypress' ), (int) $total_items ); 75 76 } else { -
trunk/src/bp-members/bp-members-template.php
r13184 r13185 861 861 'id' => false, 862 862 'no_grav' => false, 863 / / translators: %s is the full name of the user.863 /* translators: %s: member name */ 864 864 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname ), 865 865 ) … … 1672 1672 'height' => false, 1673 1673 'html' => true, 1674 /* translators: %s: member name */ 1674 1675 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_loggedin_user_fullname() ) 1675 1676 ) … … 1730 1731 'height' => false, 1731 1732 'html' => true, 1733 /* translators: %s: member name */ 1732 1734 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 1733 1735 ) -
trunk/src/bp-members/classes/class-bp-members-component.php
r13167 r13185 707 707 'item_id' => bp_displayed_user_id(), 708 708 'type' => 'thumb', 709 /* translators: %s: member name */ 709 710 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $bp->bp_options_title ) 710 711 ) ); -
trunk/src/bp-messages/bp-messages-template.php
r13148 r13185 765 765 766 766 $fullname = bp_core_get_user_displayname( $messages_template->thread->last_sender_id ); 767 $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname ); 767 768 /* translators: %s: member name */ 769 $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname ); 768 770 769 771 $r = bp_parse_args( -
trunk/src/bp-messages/classes/class-bp-messages-component.php
r13144 r13185 409 409 'item_id' => bp_displayed_user_id(), 410 410 'type' => 'thumb', 411 /* translators: %s: member name */ 411 412 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 412 413 ) ); -
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13093 r13185 293 293 'item_id' => bp_displayed_user_id(), 294 294 'type' => 'thumb', 295 /* translators: %s: member name */ 295 296 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 296 297 ) ); -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php
r12156 r13185 37 37 <?php 38 38 printf( 39 /* translators: %s = number ofmembers */39 /* translators: %s is the number of Group members */ 40 40 _n( 41 41 '%s member', -
trunk/src/js/bp-friends/js/friends.js
r13002 r13185 28 28 friends.forEach( ( friend ) => { 29 29 if ( 'active' === type && friend.last_activity ) { 30 /* translators: %s: a human time diff.*/30 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 31 31 friend.extra = sprintf( __( 'Active %s', 'buddypress' ), friend.last_activity.timediff ); 32 32 } else if ( 'popular' === type && friend.total_friend_count ) { -
trunk/src/js/bp-groups/js/dynamic-groups.js
r13004 r13185 40 40 group.extra = __( '1 member', 'buddypress' ); 41 41 } else { 42 /* translators: %s is the number of Group members (more than 1).*/42 /* translators: %s is the number of Group members */ 43 43 group.extra = sprintf( __( '%s members', 'buddypress' ), group.total_member_count ); 44 44 } 45 45 } else { 46 /* translators: %s: a human time diff.*/46 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 47 47 group.extra = sprintf( __( 'Active %s', 'buddypress' ), group.last_activity_diff ); 48 48 } -
trunk/src/js/bp-members/js/dynamic-members.js
r13003 r13185 30 30 members.forEach( ( member ) => { 31 31 if ( 'active' === type && member.last_activity ) { 32 /* translators: %s: a human time diff.*/32 /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */ 33 33 member.extra = sprintf( __( 'Active %s', 'buddypress' ), member.last_activity.timediff ); 34 34 } else if ( 'popular' === type && member.total_friend_count ) {
Note: See TracChangeset
for help on using the changeset viewer.