Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -313,21 +313,22 @@ |
314 | 314 | foreach( $runs as $run ) { |
315 | 315 | $html .= "<h3>" . htmlspecialchars( $run->suite->name ) . "</h3>\n"; |
316 | 316 | if( $run->status == 'complete' ) { |
| 317 | + global $wgLang; |
| 318 | + |
317 | 319 | $total = $run->countTotal; |
318 | 320 | $success = $run->countSuccess; |
319 | 321 | $failed = $total - $success; |
320 | | - $success_tests = "<span class='mw-codereview-success'>$success</span>"; |
| 322 | + $success_tests = "<span class='mw-codereview-success'>" . $wgLang->formatNum( $success ) . "</span>"; |
321 | 323 | if( $failed ) { |
322 | | - $failed_tests = "<span class='mw-codereview-fail'>$failed</span>"; |
323 | | - $html .= "<p>" . |
324 | | - wfMsgExt( |
325 | | - 'codereview-tests-failed2', |
326 | | - 'parseinline', |
327 | | - $success_tests, |
328 | | - $success, |
329 | | - $failed_tests, |
330 | | - $failed |
331 | | - ) . "</p>"; |
| 324 | + $failed_tests = "<span class='mw-codereview-fail'>" . $wgLang->formatNum( $failed ) . "</span>"; |
| 325 | + $html .= wfMsgExt( |
| 326 | + 'codereview-tests-failed2', |
| 327 | + 'parse', |
| 328 | + $success_tests, |
| 329 | + $success, |
| 330 | + $failed_tests, |
| 331 | + $failed |
| 332 | + ); |
332 | 333 | |
333 | 334 | $tests = $run->getResults( false ); |
334 | 335 | $html .= "<ul>\n"; |
— | — | @@ -336,13 +337,12 @@ |
337 | 338 | } |
338 | 339 | $html .= "</ul>\n"; |
339 | 340 | } else { |
340 | | - $html .= "<p>" . |
341 | | - wfMsgExt( |
342 | | - 'codereview-tests-succeeded2', |
343 | | - 'parseinline', |
344 | | - $success_tests, |
345 | | - $success |
346 | | - ) . "</p>"; |
| 341 | + $html .= wfMsgExt( |
| 342 | + 'codereview-tests-succeeded2', |
| 343 | + 'parseinline', |
| 344 | + $success_tests, |
| 345 | + $success |
| 346 | + ); |
347 | 347 | } |
348 | 348 | } elseif( $run->status == "running" ) { |
349 | 349 | $html .= wfMsgExt('codereview-tests-running','parse'); |