Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -1340,7 +1340,7 @@ |
1341 | 1341 | } |
1342 | 1342 | $quantity = count( $label ); |
1343 | 1343 | $form .= Xml::openElement( 'span', array('class' => 'fr-rating-options') ) . "\n"; |
1344 | | - $form .= "<b>" . wfMsgHtml("revreview-$quality") . ":</b> "; |
| 1344 | + $form .= "<b>" . FlaggedRevs::getTagMsg($quality) . ":</b> "; |
1345 | 1345 | # If the sum of qualities of all flags is above 6, use drop down boxes |
1346 | 1346 | # 6 is an arbitrary value choosen according to screen space and usability |
1347 | 1347 | if( $size > 6 ) { |
— | — | @@ -1348,15 +1348,14 @@ |
1349 | 1349 | $form .= Xml::openElement( 'select', $attribs ); |
1350 | 1350 | foreach( $label as $i => $name ) { |
1351 | 1351 | $optionClass = array( 'class' => "fr-rating-option-$i" ); |
1352 | | - $form .= Xml::option( wfMsg( "revreview-$name" ), $i, ($i == $selected), $optionClass ) |
1353 | | - ."\n"; |
| 1352 | + $form .= Xml::option( FlaggedRevs::getTagMsg($name), $i, ($i == $selected), $optionClass )."\n"; |
1354 | 1353 | } |
1355 | 1354 | $form .= Xml::closeElement('select')."\n"; |
1356 | 1355 | # If there are more than two qualities (none, 1 and more) current user gets radio buttons |
1357 | 1356 | } else if( $quantity > 2 ) { |
1358 | 1357 | foreach( $label as $i => $name ) { |
1359 | 1358 | $attribs = array( 'class' => "fr-rating-option-$i", 'onchange' => "updateRatingForm()" ); |
1360 | | - $form .= Xml::radioLabel( wfMsg( "revreview-$name" ), "wp$quality", $i, "wp$quality".$i, |
| 1359 | + $form .= Xml::radioLabel( FlaggedRevs::getTagMsg($name), "wp$quality", $i, "wp$quality".$i, |
1361 | 1360 | ($i == $selected), $attribs ) . "\n"; |
1362 | 1361 | } |
1363 | 1362 | # Otherwise make checkboxes (two qualities available for current user |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | */ |
182 | 182 | public static function getTagMsg( $tag ) { |
183 | 183 | self::load(); |
184 | | - return "revreview-$tag"; |
| 184 | + return wfMsgHtml("revreview-$tag"); |
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |