https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114488
Revision: 114488
Author: jeroendedauw
Date: 2012-03-26 14:51:26 +0000 (Mon, 26 Mar 2012)
Log Message:
-----------
added missing messages
Modified Paths:
--------------
trunk/extensions/SemanticResultFormats/SRF_Messages.php
trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php
Modified: trunk/extensions/SemanticResultFormats/SRF_Messages.php
===================================================================
--- trunk/extensions/SemanticResultFormats/SRF_Messages.php 2012-03-26
14:26:35 UTC (rev 114487)
+++ trunk/extensions/SemanticResultFormats/SRF_Messages.php 2012-03-26
14:51:26 UTC (rev 114488)
@@ -149,6 +149,9 @@
'srf-paramdesc-displaylength' => 'Initial display length',
// format "tree", "ultree", "oltree"
+ 'srf_printername_tree' => 'Tree',
+ 'srf_printername_ultree' => 'Ultree',
+ 'srf_printername_oltree' => 'Oltree',
'srf-noparentprop' => 'No parent property given. The tree can not be
built without a specified parent property.',
'srf-paramdesc-parent' => 'The property containing the parent page',
);
@@ -197,6 +200,9 @@
'srf-paramdesc-parent' => '{{doc-paramdesc|parent}}',
'srf_printername_earliest' => '{{doc-smwformat|earliest}}',
'srf_printername_latest' => '{{doc-smwformat|latest}}',
+ 'srf_printername_tree' => '{{doc-smwformat|tree}}',
+ 'srf_printername_ultree' => '{{doc-smwformat|ultree}}',
+ 'srf_printername_oltree' => '{{doc-smwformat|oltree}}',
);
/** Afrikaans (Afrikaans)
Modified: trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php
===================================================================
--- trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php 2012-03-26
14:26:35 UTC (rev 114487)
+++ trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php 2012-03-26
14:51:26 UTC (rev 114488)
@@ -21,6 +21,14 @@
protected $mTreeProp = null;
+ /**
+ * (non-PHPdoc)
+ * @see SMWResultPrinter::getName()
+ */
+ public function getName() {
+ return wfMsg( 'srf_printername_' . $this->mFormat );
+ }
+
protected function handleParameters( array $params, $outputmode ) {
parent::handleParameters( $params, $outputmode );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs