Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311213

Change subject: Avoid wfMessage()
......................................................................

Avoid wfMessage()

Change-Id: I4b60212aaf5dae61ec9cf372ef2515618d4c53ed
---
M includes/page/EditPagePage.php
1 file changed, 7 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/13/311213/1

diff --git a/includes/page/EditPagePage.php b/includes/page/EditPagePage.php
index 5d4f422..4c97273 100644
--- a/includes/page/EditPagePage.php
+++ b/includes/page/EditPagePage.php
@@ -131,7 +131,8 @@
                $out = $this->context->getOutput();
                $out->addHTML(
                        Html::openElement( 'div', [ 'class' => $areaClass ] ) .
-                       Html::element( 'label', [ 'for' => $textareaName ], 
wfMessage( $labelMsg )->text() )
+                       Html::element( 'label', [ 'for' => $textareaName ],
+                               $this->context->msg( $labelMsg )->text() )
                );
                $this->showTextbox( $content, $textareaName, 
$textareaAttributes );
                $out->addHTML( Html::closeElement( 'div' ) );
@@ -164,7 +165,10 @@
                        $msg = 'proofreadpage_quality' . $level . '_category';
                        $cls = 'quality' . $level;
 
-                       $attributes = [ 'tabindex' => ++$tabindex, 'title' => 
wfMessage( $msg )->plain() ];
+                       $attributes = [
+                               'tabindex' => ++$tabindex,
+                               'title' => $this->context->msg( $msg )->plain()
+                       ];
                        if ( $level == $currentLevel->getLevel() ) {
                                $attributes[] = 'checked';
                        }
@@ -181,7 +185,7 @@
                                $html .
                                Html::closeElement( 'span' ) .
                                Html::OpenElement( 'label', [ 'for' => 
'wpQuality-container' ] ) .
-                               wfMessage( 'proofreadpage_page_status' 
)->title( $this->getTitle() )->parse() .
+                               $this->context->msg( 
'proofreadpage_page_status' )->title( $this->getTitle() )->parse() .
                                Html::closeElement( 'label' );
                }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b60212aaf5dae61ec9cf372ef2515618d4c53ed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to