r40883 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40882‎ | r40883 | r40884 >
Date:21:39, 15 September 2008
Author:demon
Status:old
Tags:
Comment:
Cleanup for 40882. i18n the code comment stuff.
Modified paths:
  • /trunk/extensions/CodeReview/CodeReview.i18n.php (modified) (history)
  • /trunk/extensions/CodeReview/SpecialCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeReview.i18n.php
@@ -25,6 +25,10 @@
2626 'code-rev-modified-c' => 'copied',
2727 'code-rev-modified-d' => 'deleted',
2828 'code-rev-modified-m' => 'modified',
 29+ 'code-rev-comment-by' => 'Comment by',
 30+ 'code-rev-comment-submit' => 'Submit comment',
 31+ 'code-rev-comment-preview' => 'Preview',
 32+ 'code-rev-diff' => 'Diff',
2933
3034 'repoadmin' => 'Repository Administration',
3135 'repoadmin-new-legend' => 'Create a new repository',
Index: trunk/extensions/CodeReview/SpecialCode.php
@@ -244,7 +244,7 @@
245245 <tr><td valign="top">' . wfMsgHtml( 'code-rev-paths' ) . '</td><td valign="top">' . $paths . '</td></tr>
246246 </table>';
247247 $html .=
248 - "<h2>Diff</h2>" .
 248+ "<h2>" . wfMsgHtml( 'code-rev-diff' ) . "</h2>" .
249249 "<div class='mw-codereview-diff'>" .
250250 $this->formatDiff() .
251251 "</div>";
@@ -308,7 +308,7 @@
309309 global $wgOut, $wgLang;
310310 return '<div class="mw-codereview-comment">' .
311311 '<div class="mw-codereview-comment-meta">' .
312 - 'Comment by ' .
 312+ wfMsgHtml( 'code-rev-comment-by' ) . ' ' .
313313 $this->mSkin->userLink( $comment->user, $comment->userText ) .
314314 $this->mSkin->userToolLinks( $comment->user, $comment->userText ) .
315315 ' ' .
@@ -335,9 +335,9 @@
336336 Xml::textArea( 'wpTextbox1', '' ) .
337337 '</div>' .
338338 '<div>' .
339 - Xml::submitButton( 'Submit comment', array( 'name' => 'wpSave' ) ) .
 339+ Xml::submitButton( wfMsg( 'code-rev-comment-submit' ), array( 'name' => 'wpSave' ) ) .
340340 ' ' .
341 - Xml::submitButton( 'Preview', array( 'name' => 'wpPreview' ) ) .
 341+ Xml::submitButton( wfMsg( 'code-rev-comment-preview' ), array( 'name' => 'wpPreview' ) ) .
342342 '</div>' .
343343 '</div>' .
344344 '</form>';

Status & tagging log