Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Category.php |
— | — | @@ -39,11 +39,8 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | public function getName() { |
43 | | - // just use the name of the 'Category' namespace, instead |
44 | | - // of creating a new language value |
45 | | - global $wgContLang; |
46 | | - $namespace_labels = $wgContLang->getNamespaces(); |
47 | | - return $namespace_labels[NS_CATEGORY]; |
| 43 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 44 | + return wfMsg( 'smw_printername_' . $this->mFormat ); |
48 | 45 | } |
49 | 46 | |
50 | 47 | protected function getResultText( SMWQueryResult $res, $outputmode ) { |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -64,6 +64,7 @@ |
65 | 65 | 'smw_printername_broadtable' => 'Broad table', |
66 | 66 | 'smw_printername_template' => 'Template', |
67 | 67 | 'smw_printername_rdf' => 'RDF export', |
| 68 | + 'smw_printername_category' => 'Category', |
68 | 69 | |
69 | 70 | // Messages for query parameter descriptions |
70 | 71 | 'smw_paramdesc_limit' => 'The maximum number of results to return', |