Spage has uploaded a new change for review.
https://gerrit.wikimedia.org/r/61165
Change subject: Generate a specific NUMBEROFACTIVEUSERS benefit
......................................................................
Generate a specific NUMBEROFACTIVEUSERS benefit
In the new compact vertical create account form, this turns the
third benefit into the more accurate 'NNN,NNN contributors in the last
30 days', where 30 comes from $wgActiveUserDays.
Bug: 47753
Change-Id: I526bfbb99c45f15dc78396da9a488a09bbf09baa
---
M includes/templates/UsercreateVForm.php
M languages/messages/MessagesEn.php
M languages/messages/MessagesQqq.php
3 files changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/65/61165/1
diff --git a/includes/templates/UsercreateVForm.php
b/includes/templates/UsercreateVForm.php
index 0366aef..0bfc55f 100644
--- a/includes/templates/UsercreateVForm.php
+++ b/includes/templates/UsercreateVForm.php
@@ -47,7 +47,7 @@
}
function execute() {
- global $wgCookieExpiration;
+ global $wgCookieExpiration, $wgActiveUserDays;
$expirationDays = ceil( $wgCookieExpiration / ( 3600 * 24 ) );
?>
<div class="mw-ui-container">
@@ -279,7 +279,7 @@
<div class="mw-benefits-icon <?php $this->msg(
'createacct-benefit-icon3' ); ?>"></div>
<div class="mw-number-text">
<h3><?php $this->msg(
'createacct-benefit-head3' ); ?></h3>
- <p><?php $this->msg( 'createacct-benefit-body3'
); ?></p>
+ <p><?php echo $this->getMsg(
'createacct-benefit-body3')->params( $wgActiveUserDays ); ?></p>
</div>
</div>
</div>
diff --git a/languages/messages/MessagesEn.php
b/languages/messages/MessagesEn.php
index 8191f59..cc18491 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -1137,7 +1137,7 @@
'createacct-benefit-body2' => 'pages',
'createacct-benefit-icon3' => 'icon-contributors',
'createacct-benefit-head3' => '{{NUMBEROFACTIVEUSERS}}',
-'createacct-benefit-body3' => 'contributors this month',
+'createacct-benefit-body3' => 'contributors in the last $1
{{PLURAL:$1|day|days}}',
'badretype' => 'The passwords you entered do not match.',
'userexists' => 'Username entered already in use.
Please choose a different name.',
diff --git a/languages/messages/MessagesQqq.php
b/languages/messages/MessagesQqq.php
index bdebfd4..aafed70 100644
--- a/languages/messages/MessagesQqq.php
+++ b/languages/messages/MessagesQqq.php
@@ -1188,6 +1188,9 @@
{{Identical|Page}}',
'createacct-benefit-body3' => 'In vertical-layout create account form, the
text for the third benefit.
+Parameters
+* $1 - the $wgActiveUserDays configuration variable
+
Preceded by the message {{msg-mw|Createacct-benefit-head3}} (number of
contributors).
See example: [{{canonicalurl:Special:UserLogin|type=signup&useNew=1}}
Special:UserLogin?type=signup&useNew=1]',
--
To view, visit https://gerrit.wikimedia.org/r/61165
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I526bfbb99c45f15dc78396da9a488a09bbf09baa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Spage <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits