r54347 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54346‎ | r54347 | r54348 >
Date:07:45, 4 August 2009
Author:vrandezo
Status:deferred
Tags:
Comment:
Got inverse property labels working again
Modified paths:
  • /trunk/extensions/SemanticMediaWiki (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php
@@ -141,7 +141,7 @@
142142 $displayline = true;
143143 if ($property->isVisible()) {
144144 $property->setCaption($this->getPropertyLabel($property, $incoming));
145 - $proptext = $property->getLongHTMLText($skin) . "\n";
 145+ $proptext = $property->getShortHTMLText($skin) . "\n";
146146 } else {
147147 // global $smwgContLang;
148148 // $proptext = $smwgContLang->findSpecialPropertyLabel( $property );
@@ -364,7 +364,7 @@
365365 $rv = wfMsg('smw_inverse_label_default', $property->getWikiValue());
366366 }
367367 } else {
368 - $rv = $property->getWikiValue();
 368+ $rv = $property->getWikiValue();
369369 }
370370 return $this->unbreak($rv);
371371 }
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php
@@ -242,7 +242,7 @@
243243 'smw_browse_no_outgoing' => 'This page has no properties.',
244244 'smw_browse_no_incoming' => 'No properties link to this page.',
245245 'smw_inverse_label_default' => '$1 of',
246 - 'smw_inverse_label_property' => 'Inverse property label, or denomination',
 246+ 'smw_inverse_label_property' => 'Inverse property label', # this is the name of a special property
247247
248248 // Messages for the page property special
249249 'pageproperty' => 'Page property search',
Property changes on: trunk/extensions/SemanticMediaWiki
___________________________________________________________________
Modified: svn:ignore
250250 - .project
.settings
251251 + .project
.settings
.buildpath

Status & tagging log