Reedy has uploaded a new change for review.

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

Change subject: Replace wfMsg*() usages in 1.8.x branch for WMF usages
......................................................................

Replace wfMsg*() usages in 1.8.x branch for WMF usages

Bug: T123583
Bug: T123599
Change-Id: I4c28907d851e218db93c70611ccaeb45a0d2b27b
---
M formats/Filtered/views/SRF_FV_Calendar.php
M formats/Filtered/views/SRF_FV_List.php
M formats/incoming/SRF_Incoming.php
3 files changed, 6 insertions(+), 6 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticResultFormats 
refs/changes/66/265166/1

diff --git a/formats/Filtered/views/SRF_FV_Calendar.php 
b/formats/Filtered/views/SRF_FV_Calendar.php
index 90ee798..dc3667b 100644
--- a/formats/Filtered/views/SRF_FV_Calendar.php
+++ b/formats/Filtered/views/SRF_FV_Calendar.php
@@ -235,7 +235,7 @@
                return
                        $this->getParamHashes( $this->getQueryResults(), 
$this->getActualParameters()) +
                        array(
-                               'firstDay' => ($wgAmericanDates?'0':wfMsg( 
'srf-filtered-firstdayofweek' )),
+                               'firstDay' => ($wgAmericanDates?'0':wfMessage( 
'srf-filtered-firstdayofweek' )->text()),
                                'isRTL' => wfGetLangObj( true )->isRTL(),
                        );
        }
@@ -280,7 +280,7 @@
         * @return String the selector label
         */
        public function getSelectorLabel() {
-               return wfMsg('srf-filtered-selectorlabel-calendar');
+               return wfMessage('srf-filtered-selectorlabel-calendar')->text();
        }
 
 }
diff --git a/formats/Filtered/views/SRF_FV_List.php 
b/formats/Filtered/views/SRF_FV_List.php
index c5c4174..9f58c0e 100644
--- a/formats/Filtered/views/SRF_FV_List.php
+++ b/formats/Filtered/views/SRF_FV_List.php
@@ -248,7 +248,7 @@
         * @return String the selector label
         */
        public function getSelectorLabel() {
-               return wfMsg('srf-filtered-selectorlabel-list');
+               return wfMessage('srf-filtered-selectorlabel-list')->text();
        }
 
 }
diff --git a/formats/incoming/SRF_Incoming.php 
b/formats/incoming/SRF_Incoming.php
index 735a4eb..8d62774 100644
--- a/formats/incoming/SRF_Incoming.php
+++ b/formats/incoming/SRF_Incoming.php
@@ -33,7 +33,7 @@
         * @return string
         */
        public function getName() {
-               return wfMsg( 'srf-printername-incoming' );
+               return wfMessage( 'srf-printername-incoming' )->text();
        }
 
        /**
@@ -55,7 +55,7 @@
                        if ( $this->params['default'] !== '' ) {
                                return $this->escapeText( 
$this->params['default'], $outputmode );
                        } else {
-                               return $result->addErrors( array( 
wfMsgForContent( 'smw_result_noresults' ) ) );
+                               return $result->addErrors( array( wfMessage( 
'smw_result_noresults' )->inContentLanguage()->text() ) );
                        }
                } else {
                        return $this->getFormatOutput( $data );
@@ -210,4 +210,4 @@
 
                return $params;
        }
-}
\ No newline at end of file
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4c28907d851e218db93c70611ccaeb45a0d2b27b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticResultFormats
Gerrit-Branch: 1.8.x
Gerrit-Owner: Reedy <re...@wikimedia.org>

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

Reply via email to