jenkins-bot has submitted this change and it was merged.

Change subject: Give grep a chance to find the usages
......................................................................


Give grep a chance to find the usages

Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b
---
M includes/ProtectionForm.php
M includes/logging/LogEventsList.php
M includes/specials/SpecialRandompage.php
M includes/specials/SpecialRedirect.php
4 files changed, 9 insertions(+), 3 deletions(-)

Approvals:
  Matmarex: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php
index 061ed2c..f10317a 100644
--- a/includes/ProtectionForm.php
+++ b/includes/ProtectionForm.php
@@ -605,6 +605,7 @@
                if ( $permission == '' ) {
                        return wfMessage( 'protect-default' )->text();
                } else {
+                       // Messages: protect-level-autoconfirmed, 
protect-level-sysop
                        $msg = wfMessage( "protect-level-{$permission}" );
                        if ( $msg->exists() ) {
                                return $msg->text();
diff --git a/includes/logging/LogEventsList.php 
b/includes/logging/LogEventsList.php
index 2150019..c27b57a 100644
--- a/includes/logging/LogEventsList.php
+++ b/includes/logging/LogEventsList.php
@@ -172,6 +172,7 @@
                                $query
                        );
 
+                       // Message: log-show-hide-patrol
                        $links[$type] = $this->msg( "log-show-hide-{$type}" 
)->rawParams( $link )->escaped();
                        $hiddens .= Html::hidden( "hide_{$type}_log", $val ) . 
"\n";
                }
diff --git a/includes/specials/SpecialRandompage.php 
b/includes/specials/SpecialRandompage.php
index e4f31f4..c94d2b3 100644
--- a/includes/specials/SpecialRandompage.php
+++ b/includes/specials/SpecialRandompage.php
@@ -64,6 +64,7 @@
 
                if ( is_null( $title ) ) {
                        $this->setHeaders();
+                       // Message: randompage-nopages, randomredirect-nopages
                        $this->getOutput()->addWikiMsg( strtolower( 
$this->getName() ) . '-nopages',
                                $this->getNsList(), count( $this->namespaces ) 
);
 
diff --git a/includes/specials/SpecialRedirect.php 
b/includes/specials/SpecialRedirect.php
index 2681207..f05dacb 100644
--- a/includes/specials/SpecialRedirect.php
+++ b/includes/specials/SpecialRedirect.php
@@ -166,6 +166,7 @@
                }
                if ( !is_null( $this->mValue ) ) {
                        $this->getOutput()->setStatusCode( 404 );
+                       // Message: redirect-not-exists
                        $msg = $this->getMessagePrefix() . '-not-exists';
                        return Status::newFatal( $msg );
                }
@@ -176,6 +177,7 @@
                $mp = $this->getMessagePrefix();
                $ns = array(
                        // subpage => message
+                       // Messages: redirect-user, redirect-revision, 
redirect-file
                        'user' => $mp . '-user',
                        'revision' => $mp . '-revision',
                        'file' => $mp . '-file',
@@ -183,7 +185,7 @@
                $a = array();
                $a['type'] = array(
                        'type' => 'select',
-                       'label-message' => $mp . '-lookup',
+                       'label-message' => $mp . '-lookup', // Message: 
redirect-lookup
                        'options' => array(),
                        'default' => current( array_keys( $ns ) ),
                );
@@ -193,7 +195,7 @@
                }
                $a['value'] = array(
                        'type' => 'text',
-                       'label-message' => $mp . '-value'
+                       'label-message' => $mp . '-value' // Message: 
redirect-value
                );
                // set the defaults according to the parsed subpage path
                if ( !empty( $this->mType ) ) {
@@ -220,7 +222,8 @@
        protected function alterForm( HTMLForm $form ) {
                /* display summary at top of page */
                $this->outputHeader();
-               /* tweak label on submit button */
+               // tweak label on submit button
+               // Message: redirect-submit
                $form->setSubmitTextMsg( $this->getMessagePrefix() . '-submit' 
);
                /* submit form every time */
                $form->setMethod( 'get' );

-- 
To view, visit https://gerrit.wikimedia.org/r/82602
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Shirayuki <[email protected]>
Gerrit-Reviewer: Matmarex <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to