From: Andrew Garrett Date: Sun, 26 Nov 2006 11:15:35 +0000 (+0000) Subject: Add message explaining if undoing an edit failed. X-Git-Tag: 1.31.0-rc.0~55077 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=736e61af522783e50138af72eb1fc2c8bfffb9e5;p=lhc%2Fweb%2Fwiklou.git Add message explaining if undoing an edit failed. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index cd50c7be53..860f1abd7d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -113,6 +113,10 @@ class EditPage { if (!$result) { #Undoing failed. Bailing out with regular revision text. $text = $currev_text; + + #Give a warning + $this->editFormTextTop = "

" . wfMsg('undofailed') . "


\n" . + wfMsg('explainundofailed'); } } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a429bdc174..1c89f74493 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -997,6 +997,10 @@ the text into a text file and save it for later.', 'nocreatetitle' => 'Page creation limited', 'nocreatetext' => 'This site has restricted the ability to create new pages. You can go back and edit an existing page, or [[Special:Userlogin|log in or create an account]].', +'undofailed' => 'Undo Failed', +'explainundofailed' => 'The edit could not be undone because of conflicting intermediate edits. Please manually undo the edits', + +# Account creation failure 'cantcreateaccounttitle' => 'Can\'t create account', 'cantcreateaccounttext' => 'Account creation from this IP address ($1) has been blocked. This is probably due to persistent vandalism from your school or Internet service