Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | $proptext = $smwgContLang->findSpecialPropertyLabel( $property ); |
151 | 151 | if ($proptext != '') { |
152 | 152 | $p = Title::newFromText($proptext, SMW_NS_PROPERTY); |
153 | | - $proptext = $skin->makeLinkObj($p, $proptext); |
| 153 | + $proptext = $skin->makeLinkObj($p, $this->unbreak($proptext)); |
154 | 154 | $displayline = true; |
155 | 155 | } |
156 | 156 | if (SMW_SP_INSTANCE_OF == $property) { |
— | — | @@ -197,7 +197,14 @@ |
198 | 198 | $noresult = false; |
199 | 199 | } |
200 | 200 | } // end foreach properties |
201 | | - if ($noresult) $html .= "<tr class=\"smwb-propvalue\"><th> </th><td><em>" . wfMsg('smw_result_noresults') . "</em></td></th></table>\n"; |
| 201 | + if ($noresult) { |
| 202 | + if ($incoming) |
| 203 | + $noresulttext = wfMsg('smw_browse_no_incoming'); |
| 204 | + else |
| 205 | + $noresulttext = wfMsg('smw_browse_no_outgoing'); |
| 206 | + |
| 207 | + $html .= "<tr class=\"smwb-propvalue\"><th> </th><td><em>" . $noresulttext . "</em></td></th></table>\n"; |
| 208 | + } |
202 | 209 | |
203 | 210 | $html .= "</table>\n"; |
204 | 211 | return $html; |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -233,6 +233,8 @@ |
234 | 234 | 'smw_browse_more' => '…', |
235 | 235 | 'smw_browse_show_incoming' => 'show properties that link here', |
236 | 236 | 'smw_browse_hide_incoming' => 'hide properties that link here', |
| 237 | + 'smw_browse_no_outgoing' => 'This page has no properties.', |
| 238 | + 'smw_browse_no_incoming' => 'No properties link to this page.', |
237 | 239 | 'smw_inverse_label_default' => '$1 of', |
238 | 240 | 'smw_inverse_label_property' => 'Inverse property label', |
239 | 241 | |