Changeset 12591
- Timestamp:
- 03/28/2020 01:41:41 PM (6 years ago)
- Location:
- trunk/src/bp-members
- Files:
-
- 7 edited
-
bp-members-activity.php (modified) (1 diff)
-
bp-members-blocks.php (modified) (1 diff)
-
bp-members-functions.php (modified) (1 diff)
-
bp-members-template.php (modified) (7 diffs)
-
classes/class-bp-members-admin.php (modified) (12 diffs)
-
classes/class-bp-members-list-table.php (modified) (1 diff)
-
classes/class-bp-members-ms-list-table.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-activity.php
r12393 r12591 48 48 function bp_members_format_activity_action_new_member( $action, $activity ) { 49 49 $userlink = bp_core_get_userlink( $activity->user_id ); 50 $action = sprintf( esc_html__( '%s became a registered member', 'buddypress' ), $userlink ); 50 51 /* translators: %s: user link */ 52 $action = sprintf( esc_html__( '%s became a registered member', 'buddypress' ), $userlink ); 51 53 52 54 // Legacy filter - pass $user_id instead of $activity. -
trunk/src/bp-members/bp-members-blocks.php
r12579 r12591 112 112 esc_url( $member_link ), 113 113 esc_url( $avatar ), 114 / / Translators: %s is the member's display name.114 /* translators: %s: member name */ 115 115 sprintf( esc_html__( 'Profile photo of %s', 'buddypress' ), $display_name ) 116 116 ); -
trunk/src/bp-members/bp-members-functions.php
r12555 r12591 2274 2274 ); 2275 2275 2276 $resend_string = '<br /><br />' . sprintf( __( 'If you have not received an email yet, <a href="%s">click here to resend it</a>.', 'buddypress' ), esc_url( $resend_url ) ); 2276 $resend_string = '<br /><br />'; 2277 2278 /* translators: %s: the activation url */ 2279 $resend_string .= sprintf( __( 'If you have not received an email yet, <a href="%s">click here to resend it</a>.', 'buddypress' ), esc_url( $resend_url ) ); 2277 2280 2278 2281 return new WP_Error( 'bp_account_not_activated', __( '<strong>ERROR</strong>: Your account has not been activated. Check your email for the activation link.', 'buddypress' ) . $resend_string ); -
trunk/src/bp-members/bp-members-template.php
r12555 r12591 482 482 $pag = __( 'Viewing 1 active member', 'buddypress' ); 483 483 } else { 484 /* translators: 1: active member from number. 2: active member to number. 3: total active members. */ 484 485 $pag = sprintf( _n( 'Viewing %1$s - %2$s of %3$s active member', 'Viewing %1$s - %2$s of %3$s active members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); 485 486 } … … 488 489 $pag = __( 'Viewing 1 member with friends', 'buddypress' ); 489 490 } else { 491 /* translators: 1: member with friends from number. 2: member with friends to number. 3: total members with friends. */ 490 492 $pag = sprintf( _n( 'Viewing %1$s - %2$s of %3$s member with friends', 'Viewing %1$s - %2$s of %3$s members with friends', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); 491 493 } … … 494 496 $pag = __( 'Viewing 1 online member', 'buddypress' ); 495 497 } else { 498 /* translators: 1: online member from number. 2: online member to number. 3: total online members. */ 496 499 $pag = sprintf( _n( 'Viewing %1$s - %2$s of %3$s online member', 'Viewing %1$s - %2$s of %3$s online members', $members_template->total_member_count, 'buddypress' ), $from_num, $to_num, $total ); 497 500 } … … 500 503 $pag = __( 'Viewing 1 member', 'buddypress' ); 501 504 } else { 505 /* translators: 1: member from number. 2: member to number. 3: total members. */ 502 506 $pag = 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 ); 503 507 } … … 1041 1045 $update_content = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ), $r ); 1042 1046 1047 /* translators: %s: the member latest activity update */ 1043 1048 $update_content = sprintf( _x( '- "%s"', 'member latest update in member directory', 'buddypress' ), $update_content ); 1044 1049 … … 1206 1211 } 1207 1212 1213 /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */ 1208 1214 $registered = esc_attr( bp_core_get_last_activity( $members_template->member->user_registered, _x( 'registered %s', 'Records the timestamp that the user registered into the activity stream', 'buddypress' ) ) ); 1209 1215 … … 2008 2014 $type_object = bp_get_member_type_object( bp_get_current_member_type() ); 2009 2015 2016 /* translators: %s: member type singular name */ 2010 2017 $message = sprintf( __( 'Viewing members of the type: %s', 'buddypress' ), '<strong>' . $type_object->labels['singular_name'] . '</strong>' ); 2011 2018 -
trunk/src/bp-members/classes/class-bp-members-admin.php
r12554 r12591 843 843 add_meta_box( 844 844 'bp_members_admin_user_stats', 845 sprintf( _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ), $display_name ), 845 sprintf( 846 /* translators: %s: member name */ 847 _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ), 848 $display_name 849 ), 846 850 array( $this, 'user_admin_stats_metabox' ), 847 851 $screen_id, … … 1139 1143 $date = date_i18n( $datef, strtotime( $user->user_registered ) ); 1140 1144 ?> 1141 <span id="timestamp"><?php printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></span> 1145 <span id="timestamp"> 1146 <?php 1147 /* translators: %s: registration date */ 1148 printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' ); 1149 ?> 1150 </span> 1142 1151 </div> 1143 1152 </div> <!-- #misc-publishing-actions --> … … 1169 1178 public function user_admin_spammer_metabox( $user = null ) { 1170 1179 ?> 1171 <p><?php printf( __( '%s has been marked as a spammer. All BuddyPress data associated with the user has been removed', 'buddypress' ), esc_html( bp_core_get_user_displayname( $user->ID ) ) ) ;?></p> 1180 <p> 1181 <?php 1182 /* translators: %s: member name */ 1183 printf( __( '%s has been marked as a spammer. All BuddyPress data associated with the user has been removed', 'buddypress' ), esc_html( bp_core_get_user_displayname( $user->ID ) ) ); 1184 ?> 1185 </p> 1172 1186 <?php 1173 1187 } … … 1200 1214 1201 1215 <ul> 1202 <li class="bp-members-profile-stats"><?php printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></li> 1216 <li class="bp-members-profile-stats"> 1217 <?php 1218 /* translators: %s: date */ 1219 printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' ); 1220 ?> 1221 </li> 1203 1222 1204 1223 <?php … … 1542 1561 } 1543 1562 1544 $url = add_query_arg( 'page', 'bp-signups', $base_url ); 1545 $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' ); 1563 $url = add_query_arg( 'page', 'bp-signups', $base_url ); 1564 1565 /* translators: %s: number of pending accounts */ 1566 $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' ); 1546 1567 1547 1568 $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), $class, $text ); … … 1812 1833 if ( ! empty( $_REQUEST['resent'] ) ) { 1813 1834 $notice['message'] .= sprintf( 1835 /* translators: %s: number of activation emails sent */ 1814 1836 _nx( '%s activation email successfully sent! ', '%s activation emails successfully sent! ', 1815 1837 absint( $_REQUEST['resent'] ), … … 1823 1845 if ( ! empty( $_REQUEST['notsent'] ) ) { 1824 1846 $notice['message'] .= sprintf( 1847 /* translators: %s: number of unsent activation emails */ 1825 1848 _nx( '%s activation email was not sent.', '%s activation emails were not sent.', 1826 1849 absint( $_REQUEST['notsent'] ), … … 1846 1869 if ( ! empty( $_REQUEST['activated'] ) ) { 1847 1870 $notice['message'] .= sprintf( 1871 /* translators: %s: number of activated accounts */ 1848 1872 _nx( '%s account successfully activated! ', '%s accounts successfully activated! ', 1849 1873 absint( $_REQUEST['activated'] ), … … 1857 1881 if ( ! empty( $_REQUEST['notactivated'] ) ) { 1858 1882 $notice['message'] .= sprintf( 1883 /* translators: %s: number of accounts not activated */ 1859 1884 _nx( '%s account was not activated.', '%s accounts were not activated.', 1860 1885 absint( $_REQUEST['notactivated'] ), … … 1880 1905 if ( ! empty( $_REQUEST['deleted'] ) ) { 1881 1906 $notice['message'] .= sprintf( 1907 /* translators: %s: number of deleted signups */ 1882 1908 _nx( '%s sign-up successfully deleted!', '%s sign-ups successfully deleted!', 1883 1909 absint( $_REQUEST['deleted'] ), … … 1891 1917 if ( ! empty( $_REQUEST['notdeleted'] ) ) { 1892 1918 $notice['message'] .= sprintf( 1919 /* translators: %s: number of deleted signups not deleted */ 1893 1920 _nx( '%s sign-up was not deleted.', '%s sign-ups were not deleted.', 1894 1921 absint( $_REQUEST['notdeleted'] ), … … 2289 2316 2290 2317 <p class="description"> 2291 <?php printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified ) ;?> 2318 <?php 2319 /* translators: %s: notification date */ 2320 printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified ); 2321 ?> 2292 2322 2293 2323 <?php if ( ! empty( $signup->recently_sent ) ) : ?> -
trunk/src/bp-members/classes/class-bp-members-list-table.php
r11606 r12591 196 196 } 197 197 198 /* translators: %s: url to site settings */ 198 199 printf( __( 'Registration is disabled. %s', 'buddypress' ), $link ); 199 200 } -
trunk/src/bp-members/classes/class-bp-members-ms-list-table.php
r11606 r12591 179 179 } 180 180 181 /* translators: %s: url to site settings */ 181 182 printf( __( 'Registration is disabled. %s', 'buddypress' ), $link ); 182 183 }
Note: See TracChangeset
for help on using the changeset viewer.