Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -102,6 +102,11 @@ |
103 | 103 | 'codereview-subtitle' => 'For $1', |
104 | 104 | |
105 | 105 | 'codereview-reply-link' => 'reply', |
| 106 | + |
| 107 | + 'codereview-tests-succeeded' => 'succeeded tests', |
| 108 | + 'codereview-tests-failed' => 'failed tests:', |
| 109 | + 'codereview-tests-running' => 'Test cases are running...', |
| 110 | + 'codereview-tests-aborted' => 'Test run aborted.', |
106 | 111 | |
107 | 112 | 'codereview-email-subj' => '[$1] [r$2]: New comment added', |
108 | 113 | 'codereview-email-body' => 'User "$1" posted a comment on r$3. |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -317,8 +317,10 @@ |
318 | 318 | $success = $run->countSuccess; |
319 | 319 | $failed = $total - $success; |
320 | 320 | if( $failed ) { |
321 | | - $html .= "<p><span class='mw-codereview-success'>$success</span> succeeded tests, " . |
322 | | - "<span class='mw-codereview-fail'>$failed</span> failed tests:</p>"; |
| 321 | + $html .= "<p><span class='mw-codereview-success'>$success</span> ". |
| 322 | + wfMsgHtml('codereview-tests-succeeded').", " . |
| 323 | + "<span class='mw-codereview-fail'>$failed</span> ". |
| 324 | + wfMsgHtml('codereview-tests-failed')."</p>"; |
323 | 325 | |
324 | 326 | $tests = $run->getResults( false ); |
325 | 327 | $html .= "<ul>\n"; |
— | — | @@ -327,13 +329,14 @@ |
328 | 330 | } |
329 | 331 | $html .= "</ul>\n"; |
330 | 332 | } else { |
331 | | - $html .= "<p><span class='mw-codereview-success'>$success</span> succeeded tests.</p>"; |
| 333 | + $html .= "<p><span class='mw-codereview-success'>$success</span> ". |
| 334 | + wfMsgHtml('codereview-tests-succeeded')."</p>"; |
332 | 335 | |
333 | 336 | } |
334 | 337 | } elseif( $run->status == "running" ) { |
335 | | - $html .= "<p>Test cases are running...</p>"; |
| 338 | + $html .= wfMsgExt('codereview-tests-running','parse'); |
336 | 339 | } elseif( $run->status == "abort" ) { |
337 | | - $html .= "<p>Test run aborted.</p>"; |
| 340 | + $html .= wfMsgExt('codereview-tests-aborted','parse'); |
338 | 341 | } else { |
339 | 342 | // Err, this shouldn't happen? |
340 | 343 | } |