r114488 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114487‎ | r114488 | r114489 >
Date:14:51, 26 March 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added missing messages
Modified paths:
  • /trunk/extensions/SemanticResultFormats/SRF_Messages.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php
@@ -149,6 +149,9 @@
150150 'srf-paramdesc-displaylength' => 'Initial display length',
151151
152152 // format "tree", "ultree", "oltree"
 153+ 'srf_printername_tree' => 'Tree',
 154+ 'srf_printername_ultree' => 'Ultree',
 155+ 'srf_printername_oltree' => 'Oltree',
153156 'srf-noparentprop' => 'No parent property given. The tree can not be built without a specified parent property.',
154157 'srf-paramdesc-parent' => 'The property containing the parent page',
155158 );
@@ -197,6 +200,9 @@
198201 'srf-paramdesc-parent' => '{{doc-paramdesc|parent}}',
199202 'srf_printername_earliest' => '{{doc-smwformat|earliest}}',
200203 'srf_printername_latest' => '{{doc-smwformat|latest}}',
 204+ 'srf_printername_tree' => '{{doc-smwformat|tree}}',
 205+ 'srf_printername_ultree' => '{{doc-smwformat|ultree}}',
 206+ 'srf_printername_oltree' => '{{doc-smwformat|oltree}}',
201207 );
202208
203209 /** Afrikaans (Afrikaans)
Index: trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php
@@ -21,6 +21,14 @@
2222
2323 protected $mTreeProp = null;
2424
 25+ /**
 26+ * (non-PHPdoc)
 27+ * @see SMWResultPrinter::getName()
 28+ */
 29+ public function getName() {
 30+ return wfMsg( 'srf_printername_' . $this->mFormat );
 31+ }
 32+
2533 protected function handleParameters( array $params, $outputmode ) {
2634 parent::handleParameters( $params, $outputmode );
2735

Status & tagging log