Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -149,6 +149,9 @@ |
150 | 150 | 'srf-paramdesc-displaylength' => 'Initial display length', |
151 | 151 | |
152 | 152 | // format "tree", "ultree", "oltree" |
| 153 | + 'srf_printername_tree' => 'Tree', |
| 154 | + 'srf_printername_ultree' => 'Ultree', |
| 155 | + 'srf_printername_oltree' => 'Oltree', |
153 | 156 | 'srf-noparentprop' => 'No parent property given. The tree can not be built without a specified parent property.', |
154 | 157 | 'srf-paramdesc-parent' => 'The property containing the parent page', |
155 | 158 | ); |
— | — | @@ -197,6 +200,9 @@ |
198 | 201 | 'srf-paramdesc-parent' => '{{doc-paramdesc|parent}}', |
199 | 202 | 'srf_printername_earliest' => '{{doc-smwformat|earliest}}', |
200 | 203 | '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}}', |
201 | 207 | ); |
202 | 208 | |
203 | 209 | /** Afrikaans (Afrikaans) |
Index: trunk/extensions/SemanticResultFormats/Tree/SRF_Tree.php |
— | — | @@ -21,6 +21,14 @@ |
22 | 22 | |
23 | 23 | protected $mTreeProp = null; |
24 | 24 | |
| 25 | + /** |
| 26 | + * (non-PHPdoc) |
| 27 | + * @see SMWResultPrinter::getName() |
| 28 | + */ |
| 29 | + public function getName() { |
| 30 | + return wfMsg( 'srf_printername_' . $this->mFormat ); |
| 31 | + } |
| 32 | + |
25 | 33 | protected function handleParameters( array $params, $outputmode ) { |
26 | 34 | parent::handleParameters( $params, $outputmode ); |
27 | 35 | |