Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -90,9 +90,9 @@ |
91 | 91 | 'articlefeedbackv5-form-unoversight' => 'Unmark for oversight', |
92 | 92 | 'articlefeedbackv5-form-undelete' => 'Un-delete (oversight)', |
93 | 93 | 'articlefeedbackv5-form-header' => 'Feedback #$1, at $2', |
94 | | - 'articlefeedbackv5-form1-header-found' => '{{GENDER:$1|$1}} found what they were looking for', |
95 | | - 'articlefeedbackv5-form1-header-not-found' => '{{GENDER:$1|$1}} did not find what they were looking for', |
96 | | - 'articlefeedbackv5-form1-header-left-comment' => '{{GENDER:$1|$1}} posted this comment', |
| 94 | + 'articlefeedbackv5-form1-header-found' => '{{GENDER:$1| $2 found what they were looking for|$2 found what they were looking for}}', |
| 95 | + 'articlefeedbackv5-form1-header-not-found' => '{{GENDER:$1| $2 did not find what they were looking for|$2 did not find what they were looking for}}', |
| 96 | + 'articlefeedbackv5-form1-header-left-comment' => '{{GENDER:$1|$2 posted this comment|$2 posted this comment}}', |
97 | 97 | 'articlefeedbackv5-form2-header-praise' => '{{GENDER:$1|$1}} had a praise:', |
98 | 98 | 'articlefeedbackv5-form2-header-problem' => '{{GENDER:$1|$1}} had a problem:', |
99 | 99 | 'articlefeedbackv5-form2-header-question' => '{{GENDER:$1|$1}} had a question:', |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -616,8 +616,7 @@ |
617 | 617 | } |
618 | 618 | |
619 | 619 | private function feedbackHead( $message, $class, $record, $extra = '' ) { |
620 | | - $name = htmlspecialchars( $record->user_name ); |
621 | | - $gender = $name; |
| 620 | + $name = htmlspecialchars( $record->user_name ); |
622 | 621 | if( $record->af_user_ip ) { |
623 | 622 | // Anonymous user, go to contributions page. |
624 | 623 | $title = SpecialPage::getTitleFor( 'Contributions', $record->user_name ); |
— | — | @@ -628,10 +627,11 @@ |
629 | 628 | |
630 | 629 | return Html::openElement( 'h3', array( 'class' => $class) ) |
631 | 630 | . Html::element( 'span', array( 'class' => 'icon' ) ) |
632 | | - . Linker::link( $title, $name ) |
633 | | - . Html::element( 'span', |
| 631 | + . Html::rawElement( 'span', |
634 | 632 | array( 'class' => 'result' ), |
635 | | - wfMessage( $message, $gender, $extra )->text() |
| 633 | + wfMessage( $message, $name )->rawParams( |
| 634 | + Linker::link( $title, $name ) |
| 635 | + )->escaped() |
636 | 636 | ) |
637 | 637 | . Html::closeElement( 'h3' ) |
638 | 638 | . $this->renderPermalinkTimestamp( $record ); |