Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -294,7 +294,7 @@ |
295 | 295 | } |
296 | 296 | |
297 | 297 | protected function renderFeedback( $record ) { |
298 | | - global $wgUser; |
| 298 | + global $wgUser, $wgLang; |
299 | 299 | $id = $record[0]->af_id; |
300 | 300 | |
301 | 301 | switch( $record[0]->af_bucket_id ) { |
— | — | @@ -339,20 +339,24 @@ |
340 | 340 | if ( $can_vote ) { |
341 | 341 | $footer_links .= Html::element( 'span', array( |
342 | 342 | 'class' => 'articleFeedbackv5-helpful-caption' |
343 | | - ), wfMessage( 'articlefeedbackv5-form-helpful-label', ( $record[0]->af_helpful_count + $record[0]->af_unhelpful_count ) ) ) |
| 343 | + ), wfMessage( 'articlefeedbackv5-form-helpful-label' )->text() |
| 344 | + ) |
344 | 345 | . Html::element( 'a', array( |
345 | 346 | 'id' => "articleFeedbackv5-helpful-link-$id", |
346 | 347 | 'class' => 'articleFeedbackv5-helpful-link' |
347 | | - ), wfMessage( 'articlefeedbackv5-form-helpful-yes-label', $record[0]->af_helpful_count )->text() ) |
| 348 | + ), wfMessage( 'articlefeedbackv5-form-helpful-yes-label' )->text() ) |
348 | 349 | . Html::element( 'a', array( |
349 | 350 | 'id' => "articleFeedbackv5-unhelpful-link-$id", |
350 | 351 | 'class' => 'articleFeedbackv5-unhelpful-link' |
351 | | - ), wfMessage( 'articlefeedbackv5-form-helpful-no-label', $record[0]->af_unhelpful_count )->text() ); |
| 352 | + ), wfMessage( 'articlefeedbackv5-form-helpful-no-label' )->text() ); |
352 | 353 | } |
353 | 354 | $footer_links .= Html::element( 'span', array( |
354 | 355 | 'class' => 'articleFeedbackv5-helpful-votes', |
355 | 356 | 'id' => "articleFeedbackv5-helpful-votes-$id" |
356 | | - ), wfMessage( 'articlefeedbackv5-form-helpful-votes', $record[0]->af_helpful_count, $record[0]->af_unhelpful_count ) ); |
| 357 | + ), wfMessage( 'articlefeedbackv5-form-helpful-votes', |
| 358 | + $wgLang->formatNum( $record[0]->af_helpful_count ), |
| 359 | + $wgLang->formatNum( $record[0]->af_unhelpful_count ) |
| 360 | + )->text() ); |
357 | 361 | $footer_links .= Html::closeElement( 'div' ); |
358 | 362 | if ( $can_flag ) { |
359 | 363 | $aclass = 'articleFeedbackv5-abuse-link'; |
— | — | @@ -366,7 +370,7 @@ |
367 | 371 | 'id' => "articleFeedbackv5-abuse-link-$id", |
368 | 372 | 'class' => $aclass, |
369 | 373 | 'rel' => $record[0]->af_abuse_count |
370 | | - ), wfMessage( $msg, $record[0]->af_abuse_count )->text() ); |
| 374 | + ), wfMessage( $msg, $wgLang->formatNum( $record[0]->af_abuse_count ) )->text() ); |
371 | 375 | } |
372 | 376 | $footer_links .= $details . Html::closeElement( 'div' ); |
373 | 377 | |