Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | 'articlefeedbackv5-special-sort-asc' => '^', |
62 | 62 | 'articlefeedbackv5-special-sort-desc' => 'v', |
63 | 63 | 'articlefeedbackv5-special-sort-age' => 'Date', |
64 | | - 'articlefeedbackv5-special-sort-helpfulness' => 'Helpful', |
| 64 | + 'articlefeedbackv5-special-sort-helpful' => 'Helpful', |
65 | 65 | 'articlefeedbackv5-special-sort-rating' => 'Rating', |
66 | 66 | 'articlefeedbackv5-special-sort-label-before' => 'Sort by:', |
67 | 67 | 'articlefeedbackv5-special-sort-label-after' => '', |
— | — | @@ -2118,7 +2118,7 @@ |
2119 | 2119 | 'articlefeedbackv5-special-filter-visible' => 'Sichtbar ($1)', |
2120 | 2120 | 'articlefeedbackv5-special-filter-invisible' => 'Versteckt ($1)', |
2121 | 2121 | 'articlefeedbackv5-special-sort-age' => 'Datum', |
2122 | | - 'articlefeedbackv5-special-sort-helpfulness' => 'Hilfreich', |
| 2122 | + 'articlefeedbackv5-special-sort-helpful' => 'Hilfreich', |
2123 | 2123 | 'articlefeedbackv5-special-sort-rating' => 'Bewertung', |
2124 | 2124 | 'articlefeedbackv5-special-sort-label-before' => 'Sortieren nach:', |
2125 | 2125 | 'articlefeedbackv5-special-filter-label-before' => 'Nur anzeigen:', |
— | — | @@ -4277,7 +4277,7 @@ |
4278 | 4278 | 'articlefeedbackv5-special-filter-visible' => 'Visible ($1)', |
4279 | 4279 | 'articlefeedbackv5-special-filter-invisible' => 'Agochado ($1)', |
4280 | 4280 | 'articlefeedbackv5-special-sort-age' => 'Data', |
4281 | | - 'articlefeedbackv5-special-sort-helpfulness' => 'Útil', |
| 4281 | + 'articlefeedbackv5-special-sort-helpful' => 'Útil', |
4282 | 4282 | 'articlefeedbackv5-special-sort-rating' => 'Valoración', |
4283 | 4283 | 'articlefeedbackv5-special-sort-label-before' => 'Ordenar por:', |
4284 | 4284 | 'articlefeedbackv5-special-filter-label-before' => 'Mostrar só:', |
Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.css |
— | — | @@ -231,4 +231,4 @@ |
232 | 232 | /* @embed */ |
233 | 233 | /*background: url(images/bg-button.png) repeat-x; |
234 | 234 | color: #fff; |
235 | | -}*/ |
\ No newline at end of file |
| 235 | +}*/ |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -470,7 +470,7 @@ |
471 | 471 | ApiBase::PARAM_REQUIRED => false, |
472 | 472 | ApiBase::PARAM_ISMULTI => false, |
473 | 473 | ApiBase::PARAM_TYPE => array( |
474 | | - 'age', 'helpfulness', 'rating' ) |
| 474 | + 'age', 'helpful', 'rating' ) |
475 | 475 | ), |
476 | 476 | 'sortdirection' => array( |
477 | 477 | ApiBase::PARAM_REQUIRED => false, |
Index: trunk/extensions/ArticleFeedbackv5/SpecialArticleFeedbackv5.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | ); |
25 | 25 | private $sorts = array( |
26 | 26 | 'age', |
27 | | - 'helpfulness', |
| 27 | + 'helpful', |
28 | 28 | 'rating' |
29 | 29 | ); |
30 | 30 | |
— | — | @@ -68,34 +68,36 @@ |
69 | 69 | |
70 | 70 | if ( !$pageId ) { |
71 | 71 | $out->addWikiMsg( 'articlefeedbackv5-invalid-page-id' ); |
72 | | - } else { |
73 | | - # TODO: Fix links. |
74 | | - $out->addHTML( |
75 | | - Html::openElement( |
76 | | - 'div', |
77 | | - array( 'id' => 'articleFeedbackv5-header-links' ) |
78 | | - ) |
79 | | - . Linker::link( |
80 | | - Title::newFromText( $param ), |
81 | | - $this->msg( 'articlefeedbackv5-go-to-article' )->escaped() |
82 | | - ) |
83 | | - . ' | ' . |
84 | | - Linker::link( |
85 | | - Title::newFromText( $param ), |
86 | | - $this->msg( 'articlefeedbackv5-discussion-page' )->escaped() |
87 | | - ) |
88 | | - . ' | ' . |
89 | | - Linker::link( |
90 | | - Title::newFromText( $param ), |
91 | | - $this->msg( 'articlefeedbackv5-whats-this' )->escaped() |
92 | | - ) |
93 | | - . Html::closeElement( 'div' ) |
94 | | - ); |
| 72 | + return; |
95 | 73 | } |
96 | 74 | |
| 75 | + # TODO: Fix links. |
97 | 76 | $out->addHTML( |
98 | 77 | Html::openElement( |
99 | 78 | 'div', |
| 79 | + array( 'id' => 'articleFeedbackv5-header-wrap' ) |
| 80 | + ) |
| 81 | + . Html::openElement( |
| 82 | + 'div', |
| 83 | + array( 'id' => 'articleFeedbackv5-header-links' ) |
| 84 | + ) |
| 85 | + . Linker::link( |
| 86 | + Title::newFromText( $param ), |
| 87 | + $this->msg( 'articlefeedbackv5-go-to-article' )->escaped() |
| 88 | + ) |
| 89 | + . ' | ' . |
| 90 | + Linker::link( |
| 91 | + Title::newFromText( $param ), |
| 92 | + $this->msg( 'articlefeedbackv5-discussion-page' )->escaped() |
| 93 | + ) |
| 94 | + . ' | ' . |
| 95 | + Linker::link( |
| 96 | + Title::newFromText( $param ), |
| 97 | + $this->msg( 'articlefeedbackv5-whats-this' )->escaped() |
| 98 | + ) |
| 99 | + . Html::closeElement( 'div' ) |
| 100 | + . Html::openElement( |
| 101 | + 'div', |
100 | 102 | array( 'id' => 'articleFeedbackv5-showing-count-wrap' ) |
101 | 103 | ) |
102 | 104 | . $this->msg( |
— | — | @@ -113,16 +115,20 @@ |
114 | 116 | ) |
115 | 117 | . $this->msg( 'articlefeedbackv5-percent-found', $found ) # Can't escape this, need the <span> tag to parse. |
116 | 118 | . Html::closeElement( 'div' ) |
117 | | - . Html::element( |
118 | | - 'a', |
119 | | - array( |
120 | | - 'href' => '#', |
121 | | - 'id' => 'articleFeedbackv5-special-add-feedback', |
122 | | - ), |
123 | | - $this->msg( 'articlefeedbackv5-special-add-feedback' )->text() |
124 | | - ) |
125 | 119 | ); |
126 | 120 | } |
| 121 | + |
| 122 | + $out->addHtml( |
| 123 | + Html::element( |
| 124 | + 'a', |
| 125 | + array( |
| 126 | + 'href' => '#', |
| 127 | + 'id' => 'articleFeedbackv5-special-add-feedback', |
| 128 | + ), |
| 129 | + $this->msg( 'articlefeedbackv5-special-add-feedback' )->text() |
| 130 | + ) |
| 131 | + . Html::closeElement( 'div' ) |
| 132 | + ); |
127 | 133 | |
128 | 134 | # if ( $rating ) { |
129 | 135 | # $out->addWikiMsg( 'articlefeedbackv5-overall-rating', $rating ); |