From 394638f0423799592f1313c891ac0a69804d5ac7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 3 Dec 2005 04:27:27 +0000 Subject: [PATCH] * Added an interface message that controls the layout of action=edit --- includes/EditPage.php | 38 +++++++++++++++++--------------------- languages/Language.php | 9 +++++++++ 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 4e393802c9..b0cb2d6ae9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -866,17 +866,8 @@ END " ); - - $wgOut->addWikiText( $copywarn ); - - $wgOut->addHTML( " -{$metadata} -{$editsummary} -{$checkboxhtml} -{$safemodehtml} -"); - $wgOut->addHTML( " + $editbuttons = "
@@ -884,17 +875,22 @@ END " title=\"".wfMsg('tooltip-preview')."\"/> {$cancel} | {$edithelp}
- -" ); - - $wgOut->addWikiText( wfMsgForContent( 'edittools' ) ); - - $wgOut->addHTML( " -
-{$templates} -
-" ); - +"; + + $wgOut->addHTML( + wfMsgForContent( 'editpage-template', + array( + 'METADATA' => $metadata, + 'SUMMARY' => $editsummary, + 'CHECKBOXES' => $checkboxhtml . $safemodehtml, + 'BUTTONS' => $editbuttons, + 'EDITTOOLS' => $wgOut->parse( wfMsgForContent( 'edittools' ) ), + 'COPYRIGHTWARNING' => $wgOut->parse( $copywarn ), + 'TEMPLATES' => "
$templates
" + ) + ) + ); + if ( $wgUser->isLoggedIn() ) { /** * To make it harder for someone to slip a user a page diff --git a/languages/Language.php b/languages/Language.php index 56968849c6..53bca34f5c 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -292,6 +292,15 @@ parent class in order maintain consistency across languages. ** sitesupport-url|sitesupport ', +'editpage-template' => ' +$SUMMARY +$CHECKBOXES +$BUTTONS +$EDITTOOLS +$COPYRIGHTWARNING +$TEMPLATES +', + # User preference toggles 'tog-underline' => 'Underline links:', 'tog-highlightbroken' => 'Format broken links like this (alternative: like this?).', -- 2.20.1