From 31812bc33875fb278594cbb76f56c6cad14fc72c Mon Sep 17 00:00:00 2001 From: shirayuki Date: Sat, 29 Mar 2014 17:16:28 +0900 Subject: [PATCH] i18n: Give grep a chance to find the usages Change-Id: Iac0d7cba8633fedd420c6b8e21999e94b4d438a2 --- includes/specials/SpecialRevisiondelete.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 81463e5e6f..c10b7a67aa 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -176,6 +176,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { # Initialise checkboxes $this->checks = array( + # Messages: revdelete-hide-text, revdelete-hide-image, revdelete-hide-name array( $this->typeLabels['check-label'], 'wpHidePrimary', RevisionDeleter::getRevdelConstant( $this->typeName ) ), @@ -352,6 +353,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { protected function showForm() { $userAllowed = true; + // Messages: revdelete-selected-text, revdelete-selected-file, logdelete-selected $this->getOutput()->wrapWikiMsg( "$1", array( $this->typeLabels['selected'], $this->getLanguage()->formatNum( count( $this->ids ) ), $this->targetObj->getPrefixedText() ) ); @@ -449,6 +451,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { * @todo FIXME: Wikimedia-specific policy text */ protected function addUsageText() { + // Messages: revdelete-text-text, revdelete-text-file, logdelete-text $this->getOutput()->wrapWikiMsg( "$1\n$2", $this->typeLabels['text'], 'revdelete-text-others' ); if ( $this->getUser()->isAllowed( 'suppressrevision' ) ) { $this->getOutput()->addWikiMsg( 'revdelete-suppress-text' ); @@ -472,6 +475,8 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $bitfield = RevisionDeleter::extractBitfield( $this->extractBitParams(), $bitfield ); } foreach ( $this->checks as $item ) { + // Messages: revdelete-hide-text, revdelete-hide-image, revdelete-hide-name, + // revdelete-hide-comment, revdelete-hide-user, revdelete-hide-restricted list( $message, $name, $field ) = $item; $innerHTML = Xml::checkLabel( $this->msg( $message )->text(), $name, $name, $bitfield & $field ); if ( $field == Revision::DELETED_RESTRICTED ) { @@ -488,6 +493,8 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $html .= '' . $this->msg( 'revdelete-radio-set' )->escaped() . ''; $html .= "\n"; foreach ( $this->checks as $item ) { + // Messages: revdelete-hide-text, revdelete-hide-image, revdelete-hide-name, + // revdelete-hide-comment, revdelete-hide-user, revdelete-hide-restricted list( $message, $name, $field ) = $item; // If there are several items, use third state by default... if ( $this->submitClicked ) { @@ -556,6 +563,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { * Report that the submit operation succeeded */ protected function success() { + // Messages: revdelete-success, logdelete-success $this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) ); $this->getOutput()->wrapWikiMsg( "\n$1\n", $this->typeLabels['success'] ); $this->wasSaved = true; @@ -567,6 +575,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { * Report that the submit operation failed */ protected function failure( $status ) { + // Messages: revdelete-failure, logdelete-failure $this->getOutput()->setPageTitle( $this->msg( 'actionfailed' ) ); $this->getOutput()->addWikiText( $status->getWikiText( $this->typeLabels['failure'] ) ); $this->showForm(); -- 2.20.1