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();
if ( is_null( $title ) ) {
$this->setHeaders();
+ // Message: randompage-nopages, randomredirect-nopages
$this->getOutput()->addWikiMsg( strtolower( $this->getName() ) . '-nopages',
$this->getNsList(), count( $this->namespaces ) );
}
if ( !is_null( $this->mValue ) ) {
$this->getOutput()->setStatusCode( 404 );
+ // Message: redirect-not-exists
$msg = $this->getMessagePrefix() . '-not-exists';
return Status::newFatal( $msg );
}
$mp = $this->getMessagePrefix();
$ns = array(
// subpage => message
+ // Messages: redirect-user, redirect-revision, redirect-file
'user' => $mp . '-user',
'revision' => $mp . '-revision',
'file' => $mp . '-file',
$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 ) ),
);
}
$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 ) ) {
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' );