<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][12591] trunk/src/bp-members: BP Members: add missing `/* translators */` comments</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/12591">12591</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/12591","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-03-28 13:41:41 +0000 (Sat, 28 Mar 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>BP Members: add missing `/* translators */` comments
See <a href="http://buddypress.trac.wordpress.org/ticket/8260">#8260</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpmembersbpmembersactivityphp">trunk/src/bp-members/bp-members-activity.php</a></li>
<li><a href="#trunksrcbpmembersbpmembersblocksphp">trunk/src/bp-members/bp-members-blocks.php</a></li>
<li><a href="#trunksrcbpmembersbpmembersfunctionsphp">trunk/src/bp-members/bp-members-functions.php</a></li>
<li><a href="#trunksrcbpmembersbpmemberstemplatephp">trunk/src/bp-members/bp-members-template.php</a></li>
<li><a href="#trunksrcbpmembersclassesclassbpmembersadminphp">trunk/src/bp-members/classes/class-bp-members-admin.php</a></li>
<li><a href="#trunksrcbpmembersclassesclassbpmemberslisttablephp">trunk/src/bp-members/classes/class-bp-members-list-table.php</a></li>
<li><a href="#trunksrcbpmembersclassesclassbpmembersmslisttablephp">trunk/src/bp-members/classes/class-bp-members-ms-list-table.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpmembersbpmembersactivityphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/bp-members-activity.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/bp-members-activity.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/bp-members-activity.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,8 +47,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_members_format_activity_action_new_member( $action, $activity ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $userlink = bp_core_get_userlink( $activity->user_id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $action = sprintf( esc_html__( '%s became a registered member', 'buddypress' ), $userlink );
</del><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: user link */
+ $action = sprintf( esc_html__( '%s became a registered member', 'buddypress' ), $userlink );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Legacy filter - pass $user_id instead of $activity.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( has_filter( 'bp_core_activity_registered_member_action' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $action = apply_filters( 'bp_core_activity_registered_member_action', $action, $activity->user_id );
</span></span></pre></div>
<a id="trunksrcbpmembersbpmembersblocksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/bp-members-blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/bp-members-blocks.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/bp-members-blocks.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -111,7 +111,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>',
</span><span class="cx" style="display: block; padding: 0 10px"> esc_url( $member_link ),
</span><span class="cx" style="display: block; padding: 0 10px"> esc_url( $avatar ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Translators: %s is the member's display name.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: member name */
</ins><span class="cx" style="display: block; padding: 0 10px"> sprintf( esc_html__( 'Profile photo of %s', 'buddypress' ), $display_name )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcbpmembersbpmembersfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/bp-members-functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/bp-members-functions.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/bp-members-functions.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2273,8 +2273,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'bp-resend-activation'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $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 ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $resend_string = '<br /><br />';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: the activation url */
+ $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 ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> 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 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'authenticate', 'bp_core_signup_disable_inactive', 30, 3 );
</span></span></pre></div>
<a id="trunksrcbpmembersbpmemberstemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/bp-members-template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/bp-members-template.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/bp-members-template.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -481,6 +481,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 1 == $members_template->total_member_count ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pag = __( 'Viewing 1 active member', 'buddypress' );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: 1: active member from number. 2: active member to number. 3: total active members. */
</ins><span class="cx" style="display: block; padding: 0 10px"> $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 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( 'popular' == $members_template->type ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -487,6 +488,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 1 == $members_template->total_member_count ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pag = __( 'Viewing 1 member with friends', 'buddypress' );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: 1: member with friends from number. 2: member with friends to number. 3: total members with friends. */
</ins><span class="cx" style="display: block; padding: 0 10px"> $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 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( 'online' == $members_template->type ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -493,6 +495,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 1 == $members_template->total_member_count ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pag = __( 'Viewing 1 online member', 'buddypress' );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: 1: online member from number. 2: online member to number. 3: total online members. */
</ins><span class="cx" style="display: block; padding: 0 10px"> $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 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -499,6 +502,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 1 == $members_template->total_member_count ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $pag = __( 'Viewing 1 member', 'buddypress' );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: 1: member from number. 2: member to number. 3: total members. */
</ins><span class="cx" style="display: block; padding: 0 10px"> $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 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1040,6 +1044,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $update_content = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ), $r );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: the member latest activity update */
</ins><span class="cx" style="display: block; padding: 0 10px"> $update_content = sprintf( _x( '- "%s"', 'member latest update in member directory', 'buddypress' ), $update_content );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // If $view_link is true and the text returned by bp_create_excerpt() is different from the original text (ie it's
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1205,6 +1210,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return esc_attr( $members_template->member->user_registered );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
</ins><span class="cx" style="display: block; padding: 0 10px"> $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' ) ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2007,6 +2013,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function bp_get_current_member_type_message() {
</span><span class="cx" style="display: block; padding: 0 10px"> $type_object = bp_get_member_type_object( bp_get_current_member_type() );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: member type singular name */
</ins><span class="cx" style="display: block; padding: 0 10px"> $message = sprintf( __( 'Viewing members of the type: %s', 'buddypress' ), '<strong>' . $type_object->labels['singular_name'] . '</strong>' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunksrcbpmembersclassesclassbpmembersadminphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/classes/class-bp-members-admin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/classes/class-bp-members-admin.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/classes/class-bp-members-admin.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -842,7 +842,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // User Stat metabox.
</span><span class="cx" style="display: block; padding: 0 10px"> add_meta_box(
</span><span class="cx" style="display: block; padding: 0 10px"> 'bp_members_admin_user_stats',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- sprintf( _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ), $display_name ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ sprintf(
+ /* translators: %s: member name */
+ _x( "%s's Stats", 'members user-admin edit screen', 'buddypress' ),
+ $display_name
+ ),
</ins><span class="cx" style="display: block; padding: 0 10px"> array( $this, 'user_admin_stats_metabox' ),
</span><span class="cx" style="display: block; padding: 0 10px"> $screen_id,
</span><span class="cx" style="display: block; padding: 0 10px"> sanitize_key( $this->stats_metabox->context ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1138,7 +1142,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $datef = __( 'M j, Y @ G:i', 'buddypress' );
</span><span class="cx" style="display: block; padding: 0 10px"> $date = date_i18n( $datef, strtotime( $user->user_registered ) );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <span id="timestamp"><?php printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <span id="timestamp">
+ <?php
+ /* translators: %s: registration date */
+ printf( __( 'Registered on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' );
+ ?>
+ </span>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </div> <!-- #misc-publishing-actions -->
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1168,7 +1177,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function user_admin_spammer_metabox( $user = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <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>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <p>
+ <?php
+ /* translators: %s: member name */
+ 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>
</ins><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1199,7 +1213,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $date = date_i18n( $datef, strtotime( $last_active ) ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <ul>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <li class="bp-members-profile-stats"><?php printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></li>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <li class="bp-members-profile-stats">
+ <?php
+ /* translators: %s: date */
+ printf( __( 'Last active: %1$s', 'buddypress' ), '<strong>' . $date . '</strong>' );
+ ?>
+ </li>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> // Loading other stats only if user has activated their account.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1541,9 +1560,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $base_url = bp_get_admin_url( 'users.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $url = add_query_arg( 'page', 'bp-signups', $base_url );
- $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $url = add_query_arg( 'page', 'bp-signups', $base_url );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of pending accounts */
+ $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), $class, $text );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $views;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1811,6 +1832,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['resent'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of activation emails sent */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s activation email successfully sent! ', '%s activation emails successfully sent! ',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['resent'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup resent',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1822,6 +1844,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['notsent'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of unsent activation emails */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s activation email was not sent.', '%s activation emails were not sent.',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['notsent'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup notsent',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1845,6 +1868,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['activated'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of activated accounts */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s account successfully activated! ', '%s accounts successfully activated! ',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['activated'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup resent',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1856,6 +1880,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['notactivated'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of accounts not activated */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s account was not activated.', '%s accounts were not activated.',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['notactivated'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup notsent',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1879,6 +1904,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['deleted'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of deleted signups */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s sign-up successfully deleted!', '%s sign-ups successfully deleted!',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['deleted'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup deleted',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1890,6 +1916,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $_REQUEST['notdeleted'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice['message'] .= sprintf(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: number of deleted signups not deleted */
</ins><span class="cx" style="display: block; padding: 0 10px"> _nx( '%s sign-up was not deleted.', '%s sign-ups were not deleted.',
</span><span class="cx" style="display: block; padding: 0 10px"> absint( $_REQUEST['notdeleted'] ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'signup notdeleted',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2288,7 +2315,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( 'resend' == $action ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <p class="description">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified ) ;?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php
+ /* translators: %s: notification date */
+ printf( esc_html__( 'Last notified: %s', 'buddypress'), $last_notified );
+ ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( ! empty( $signup->recently_sent ) ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbpmembersclassesclassbpmemberslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/classes/class-bp-members-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/classes/class-bp-members-list-table.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/classes/class-bp-members-list-table.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,6 +195,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( bp_get_admin_url( 'options-general.php' ) ), esc_html__( 'Edit settings', 'buddypress' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: url to site settings */
</ins><span class="cx" style="display: block; padding: 0 10px"> printf( __( 'Registration is disabled. %s', 'buddypress' ), $link );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcbpmembersclassesclassbpmembersmslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/classes/class-bp-members-ms-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/classes/class-bp-members-ms-list-table.php 2020-03-28 13:39:38 UTC (rev 12590)
+++ trunk/src/bp-members/classes/class-bp-members-ms-list-table.php 2020-03-28 13:41:41 UTC (rev 12591)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -178,6 +178,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( network_admin_url( 'settings.php' ) ), esc_html__( 'Edit settings', 'buddypress' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: %s: url to site settings */
</ins><span class="cx" style="display: block; padding: 0 10px"> printf( __( 'Registration is disabled. %s', 'buddypress' ), $link );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>