From 1b8155403c6b7e3cd499314120cde0ab6d52b990 Mon Sep 17 00:00:00 2001 From: shirayuki Date: Wed, 4 Sep 2013 20:56:47 +0900 Subject: [PATCH] Give grep a chance to find the usages Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b --- includes/ProtectionForm.php | 1 + includes/logging/LogEventsList.php | 1 + includes/specials/SpecialRandompage.php | 1 + includes/specials/SpecialRedirect.php | 9 ++++++--- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 061ed2cdbe..f10317a9e5 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -605,6 +605,7 @@ class ProtectionForm { 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 2150019cd9..c27b57af19 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -172,6 +172,7 @@ class LogEventsList extends ContextSource { $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 e4f31f4cad..c94d2b3517 100644 --- a/includes/specials/SpecialRandompage.php +++ b/includes/specials/SpecialRandompage.php @@ -64,6 +64,7 @@ class RandomPage extends SpecialPage { 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 2681207f6b..f05dacbcf8 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -166,6 +166,7 @@ class SpecialRedirect extends FormSpecialPage { } 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 @@ class SpecialRedirect extends FormSpecialPage { $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 @@ class SpecialRedirect extends FormSpecialPage { $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 @@ class SpecialRedirect extends FormSpecialPage { } $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 @@ class SpecialRedirect extends FormSpecialPage { 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' ); -- 2.20.1