Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -396,6 +396,11 @@ |
397 | 397 | return $f; |
398 | 398 | } |
399 | 399 | |
| 400 | + /** |
| 401 | + * Create filter panel |
| 402 | + * |
| 403 | + * @return string HTML fieldset and filter panel with the show/hide links |
| 404 | + */ |
400 | 405 | function getFilterPanel() { |
401 | 406 | global $wgLang; |
402 | 407 | $show = wfMsgHtml( 'show' ); |
— | — | @@ -408,11 +413,14 @@ |
409 | 414 | $types = array( 'hidetrans', 'hidelinks', 'hideredirs' ); |
410 | 415 | if( $this->target->getNamespace() == NS_FILE ) |
411 | 416 | $types[] = 'hideimages'; |
| 417 | + |
| 418 | + // Combined message keys: 'whatlinkshere-hideredirs', 'whatlinkshere-hidetrans', 'whatlinkshere-hidelinks', 'whatlinkshere-hideimages' |
| 419 | + // To be sure they will be find by grep |
412 | 420 | foreach( $types as $type ) { |
413 | 421 | $chosen = $this->opts->getValue( $type ); |
414 | | - $msg = wfMsgHtml( "whatlinkshere-{$type}", $chosen ? $show : $hide ); |
| 422 | + $msg = $chosen ? $show : $hide; |
415 | 423 | $overrides = array( $type => !$chosen ); |
416 | | - $links[] = $this->makeSelfLink( $msg, array_merge( $changed, $overrides ) ); |
| 424 | + $links[] = wfMsgHtml( "whatlinkshere-{$type}", $this->makeSelfLink( $msg, array_merge( $changed, $overrides ) ) ); |
417 | 425 | } |
418 | 426 | return Xml::fieldset( wfMsg( 'whatlinkshere-filters' ), $wgLang->pipeList( $links ) ); |
419 | 427 | } |