Changeset 12590 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 03/28/2020 01:39:38 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-template.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r12568 r12590 1546 1546 'class' => 'avatar', 1547 1547 'id' => false, 1548 'alt' => sprintf( __( 'Group creator profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $group->creator_id ) ) 1548 'alt' => sprintf( 1549 /* translators: %s: group creator name */ 1550 __( 'Group creator profile photo of %s', 'buddypress' ), 1551 bp_core_get_user_displayname( $group->creator_id ) 1552 ), 1549 1553 ), 'group_creator_avatar' ); 1550 1554 extract( $r, EXTR_SKIP ); … … 1609 1613 <?php foreach( (array) $group->admins as $admin ) { ?> 1610 1614 <li> 1611 <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $admin->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a> 1615 <a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $admin->user_id ) ); ?>"> 1616 <?php 1617 echo bp_core_fetch_avatar( 1618 array( 1619 'item_id' => $admin->user_id, 1620 'email' => $admin->user_email, 1621 'alt' => sprintf( 1622 /* translators: %s: member name */ 1623 __( 'Profile picture of %s', 'buddypress' ), 1624 bp_core_get_user_displayname( $admin->user_id ) 1625 ), 1626 ) 1627 ); 1628 ?> 1629 </a> 1612 1630 </li> 1613 1631 <?php } ?> … … 1641 1659 1642 1660 <li> 1643 <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $mod->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a> 1661 <a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $mod->user_id ) ); ?>"> 1662 <?php 1663 echo bp_core_fetch_avatar( 1664 array( 1665 'item_id' => $mod->user_id, 1666 'email' => $mod->user_email, 1667 'alt' => sprintf( 1668 /* translators: %s: member name */ 1669 __( 'Profile picture of %s', 'buddypress' ), 1670 bp_core_get_user_displayname( $mod->user_id ) 1671 ), 1672 ) 1673 ); ?> 1674 </a> 1644 1675 </li> 1645 1676 … … 1892 1923 $message = __( 'Viewing 1 group', 'buddypress' ); 1893 1924 } else { 1925 /* translators: 1: group from number. 2: group to number. 3: total groups. */ 1894 1926 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s group', 'Viewing %1$s - %2$s of %3$s groups', $groups_template->total_group_count, 'buddypress' ), $from_num, $to_num, $total ); 1895 1927 } … … 2251 2283 <li> 2252 2284 2253 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?> 2285 <?php 2286 echo bp_core_fetch_avatar( 2287 array( 2288 'item_id' => $admin->user_id, 2289 'type' => 'thumb', 2290 'width' => 30, 2291 'height' => 30, 2292 'alt' => sprintf( 2293 /* translators: %s: member name */ 2294 __( 'Profile picture of %s', 'buddypress' ), 2295 bp_core_get_user_displayname( $admin->user_id ) 2296 ), 2297 ) 2298 ); 2299 ?> 2254 2300 2255 2301 <h5> … … 2267 2313 <li> 2268 2314 2269 <?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?> 2315 <?php 2316 echo bp_core_fetch_avatar( 2317 array( 2318 'item_id' => $admin->user_id, 2319 'type' => 'thumb', 2320 'alt' => sprintf( 2321 /* translators: %s: member name */ 2322 __( 'Profile picture of %s', 'buddypress' ), 2323 bp_core_get_user_displayname( $admin->user_id ) 2324 ), 2325 ) 2326 ); 2327 ?> 2270 2328 2271 2329 <h5><?php echo bp_core_get_userlink( $admin->user_id ) ?></h5> 2272 2330 <span class="activity"> 2273 <?php echo bp_core_get_last_activity( strtotime( $admin->date_modified ), __( 'joined %s', 'buddypress') ); ?> 2331 <?php 2332 /* translators: %s: human time diff */ 2333 echo bp_core_get_last_activity( strtotime( $admin->date_modified ), __( 'joined %s', 'buddypress') ); 2334 ?> 2274 2335 </span> 2275 2336 … … 2327 2388 <li> 2328 2389 2329 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?> 2390 <?php 2391 /* translators: %s: member name */ 2392 echo bp_core_fetch_avatar( 2393 array( 2394 'item_id' => $mod->user_id, 2395 'type' => 'thumb', 2396 'width' => 30, 2397 'height' => 30, 2398 'alt' => sprintf( 2399 /* translators: %s: member name */ 2400 __( 'Profile picture of %s', 'buddypress' ), 2401 bp_core_get_user_displayname( $mod->user_id ) 2402 ), 2403 ) 2404 ); 2405 ?> 2330 2406 2331 2407 <h5> … … 2343 2419 <li> 2344 2420 2345 <?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?> 2421 <?php 2422 echo bp_core_fetch_avatar( 2423 array( 2424 'item_id' => $mod->user_id, 2425 'type' => 'thumb', 2426 'alt' => sprintf( 2427 /* translators: %s: member name */ 2428 __( 'Profile picture of %s', 'buddypress' ), 2429 bp_core_get_user_displayname( $mod->user_id ) 2430 ), 2431 ) 2432 ); 2433 ?> 2346 2434 2347 2435 <h5><?php echo bp_core_get_userlink( $mod->user_id ) ?></h5> 2348 2436 2349 <span class="activity"><?php echo bp_core_get_last_activity( strtotime( $mod->date_modified ), __( 'joined %s', 'buddypress') ); ?></span> 2437 <span class="activity"> 2438 <?php 2439 /* translators: %s: human time diff */ 2440 echo bp_core_get_last_activity( strtotime( $mod->date_modified ), __( 'joined %s', 'buddypress') ); 2441 ?> 2442 </span> 2350 2443 2351 2444 <?php if ( bp_is_active( 'friends' ) ) : ?> … … 4051 4144 * @param string $value Joined since time. 4052 4145 */ 4053 return apply_filters( 'bp_get_group_member_joined_since', bp_core_get_last_activity( $members_template->member->date_modified, __( 'joined %s', 'buddypress') ) ); 4146 return apply_filters( 4147 'bp_get_group_member_joined_since', 4148 bp_core_get_last_activity( 4149 $members_template->member->date_modified, 4150 /* translators: %s: human time diff */ 4151 __( 'joined %s', 'buddypress') 4152 ) 4153 ); 4054 4154 } 4055 4155 … … 4167 4267 $message = __( 'Viewing 1 member', 'buddypress' ); 4168 4268 } else { 4169 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s member', 'Viewing %1$s - %2$s of %3$s members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); 4269 /* translators: 1: group member from number. 2: group member to number. 3: total group members. */ 4270 $message = sprintf( _nx( 'Viewing %1$s - %2$s of %3$s member', 'Viewing %1$s - %2$s of %3$s members', $members_template->total_member_count, 'group members pagination', 'buddypress' ), $from_num, $to_num, $total ); 4170 4271 } 4171 4272 … … 5138 5239 $type_object = bp_groups_get_group_type_object( bp_get_current_group_directory_type() ); 5139 5240 5241 /* translators: %s: group type singular name */ 5140 5242 $message = sprintf( __( 'Viewing groups of the type: %s', 'buddypress' ), '<strong>' . $type_object->labels['singular_name'] . '</strong>' ); 5141 5243 … … 5495 5597 * @param string $value Formatted time since membership was requested. 5496 5598 */ 5497 echo apply_filters( 'bp_group_request_time_since_requested', sprintf( __( 'requested %s', 'buddypress' ), bp_core_time_since( $requests_template->request->date_modified ) ) ); 5599 echo apply_filters( 5600 'bp_group_request_time_since_requested', 5601 /* translators: %s: human time diff */ 5602 sprintf( __( 'requested %s', 'buddypress' ), bp_core_time_since( $requests_template->request->date_modified ) ) 5603 ); 5498 5604 } 5499 5605 … … 5568 5674 $message = __( 'Viewing 1 request', 'buddypress' ); 5569 5675 } else { 5676 /* translators: 1: group request from number. 2: group request to number. 3: total group requests. */ 5570 5677 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s request', 'Viewing %1$s - %2$s of %3$s requests', $requests_template->total_request_count, 'buddypress' ), $from_num, $to_num, $total ); 5571 5678 } … … 5837 5944 $message = __( 'Viewing 1 invitation', 'buddypress' ); 5838 5945 } else { 5946 /* translators: 1: group invite from number. 2: group invite to number. 3: total group invites. */ 5839 5947 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s invitation', 'Viewing %1$s - %2$s of %3$s invitations', $invites_template->total_invite_count, 'buddypress' ), $from_num, $to_num, $total ); 5840 5948 } … … 6015 6123 * @param string $current_group_desc Description of the current group. 6016 6124 */ 6017 $desc = apply_filters( 'bp_get_group_description', $current_group_desc );6125 $desc = apply_filters( 'bp_get_group_description', $current_group_desc ); 6018 6126 6019 6127 /** … … 6140 6248 6141 6249 // If groups exist, show some formatted output 6142 $r['output'] = $r['before'] . sprintf( _n( '%s group', '%s groups', $r['groups'], 'buddypress' ), '<strong>' . $r['groups'] . '</strong>' ) . $r['after']; 6250 $r['output'] = $r['before']; 6251 6252 /* translators: %s: number of groups */ 6253 $r['output'] .= sprintf( _n( '%s group', '%s groups', $r['groups'], 'buddypress' ), '<strong>' . $r['groups'] . '</strong>' ); 6254 $r['output'] .= $r['after']; 6143 6255 } 6144 6256 }
Note: See TracChangeset
for help on using the changeset viewer.