Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -3045,6 +3045,7 @@ |
3046 | 3046 | 'deleteconflict' => array( |
3047 | 3047 | 'deletedwhileediting', |
3048 | 3048 | 'confirmrecreate', |
| 3049 | + 'confirmrecreate-noreason', |
3049 | 3050 | 'recreate', |
3050 | 3051 | ), |
3051 | 3052 | 'unit-pixel' => array( |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1356,9 +1356,10 @@ |
1357 | 1357 | |
1358 | 1358 | // It is better to not parse the comment at all than to have templates expanded in the middle |
1359 | 1359 | // TODO: can the checkLabel be moved outside of the div so that wrapWikiMsg could be used? |
| 1360 | + $key = $comment ? 'confirmrecreate' : 'confirmrecreate-noreason'; |
1360 | 1361 | $wgOut->addHTML( |
1361 | 1362 | '<div class="mw-confirm-recreate">' . |
1362 | | - wfMsgExt( 'confirmrecreate', 'parseinline', $username, "<nowiki>$comment</nowiki>" ) . |
| 1363 | + wfMsgExt( $key, 'parseinline', $username, "<nowiki>$comment</nowiki>" ) . |
1363 | 1364 | Xml::checkLabel( wfMsg( 'recreate' ), 'wpRecreate', 'wpRecreate', false, |
1364 | 1365 | array( 'title' => $sk->titleAttrib( 'recreate' ), 'tabindex' => 1, 'id' => 'wpRecreate' ) |
1365 | 1366 | ) . |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -4141,6 +4141,7 @@ |
4142 | 4142 | 'confirmrecreate' => "User [[User:$1|$1]] ([[User talk:$1|talk]]) deleted this page after you started editing with reason: |
4143 | 4143 | : ''$2'' |
4144 | 4144 | Please confirm that you really want to recreate this page.", |
| 4145 | +'confirmrecreate-noreason' => "User [[User:$1|$1]] ([[User talk:$1|talk]]) deleted this page after you started editing. Please confirm that you really want to recreate this page.", |
4145 | 4146 | 'recreate' => 'Recreate', |
4146 | 4147 | |
4147 | 4148 | 'unit-pixel' => 'px', # only translate this message to other languages if you have to change it |