Rotsee has uploaded a new change for review.

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


Change subject: Added MessageFormatter to keep up with latest SMW
......................................................................

Added MessageFormatter to keep up with latest SMW

Change-Id: Id77e4a2a0222a8ecbc084898ab3c6ff1dbcf35e4
---
M ED_ParserFunctions.php
1 file changed, 6 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExternalData 
refs/changes/75/77275/1

diff --git a/ED_ParserFunctions.php b/ED_ParserFunctions.php
index 9b55251..77effa5 100644
--- a/ED_ParserFunctions.php
+++ b/ED_ParserFunctions.php
@@ -316,8 +316,8 @@
        static function doForExternalTable( &$parser, $expression = '' ) {
                global $edgValues;
 
-               // Get the variables used in this expression, get the number
-               // of values for each, and loop through.
+               // get the variables used in this expression, get the number
+               // of values for each, and loop through 
                $matches = array();
                preg_match_all( '/{{{([^}]*)}}}/', $expression, $matches );
                $variables = $matches[1];
@@ -430,7 +430,8 @@
                        // SMW 1.9+
                        $instance = new SMW\SubobjectParserFunction(
                                new SMW\ParserData( $parser->getTitle(), 
$parser->getOutput() ),
-                               new SMW\Subobject( $parser->getTitle() )
+                               new SMW\Subobject( $parser->getTitle() ),
+                               new SMW\MessageFormatter( 
$parser->getTargetLanguage() )
                        );
                        return $instance->parse( new 
SMW\ParserParameterFormatter( $subobjectArgs ) );
                } elseif ( class_exists( 'SMW\SubobjectHandler' ) ) {
@@ -464,8 +465,8 @@
                $params = func_get_args();
                array_shift( $params ); // we already know the $parser...
 
-               // Get the variables used in this expression, get the number
-               // of values for each, and loop through.
+               // get the variables used in this expression, get the number
+               // of values for each, and loop through 
                $expression = implode( '|', $params );
                $matches = array();
                preg_match_all( '/{{{([^}]*)}}}/', $expression, $matches );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id77e4a2a0222a8ecbc084898ab3c6ff1dbcf35e4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ExternalData
Gerrit-Branch: master
Gerrit-Owner: Rotsee <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to