From e0a82b847d0f69dc1b5e28d018d4aa81e237b4ca Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 10 May 2004 17:14:01 +0000 Subject: [PATCH] preview note --- includes/EditPage.php | 6 ++++-- languages/Language.php | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 7e891a831a..c3d132db5f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -247,8 +247,10 @@ class EditPage { if( wfReadOnly() ) { $wgOut->addHTML( "" . - wfMsg( "readonlywarning" ) . - "" ); + wfMsg( "readonlywarning" ) . + "" ); + } else if ( $isCssJsSubpage ) { + $wgOut->addHTML( wfMsg( "usercssjsyoucanpreview" )); } if( $this->mTitle->isProtected() ) { $wgOut->addHTML( "" . wfMsg( "protectedpagewarning" ) . diff --git a/languages/Language.php b/languages/Language.php index c06e3ddb7f..42c3aebdaf 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -779,6 +779,7 @@ If you are here by mistake, just click your browser's '''back''' button.", "anontalkpagetext" => "----''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ", "noarticletext" => "(There is currently no text in this page)", 'usercssjs' => "'''Note:''' After saving, you have to tell your bowser to get the new version: '''Mozilla:''' click ''reload''(or ''ctrl-r''), '''IE / Opera:''' ''ctrl-f5'', '''Safari:''' ''cmd-r'', '''Konqueror''' ''ctrl-r''.", +'usercssjsyoucanpreview' => "You can preview your style/js tweaks without reload by pressing 'Show preview'. Remember to reload after saving your changes.", 'usercsspreview' => "== Previewing your user css. == '''Note:''' After saving, you have to tell your bowser to get the new version: '''Mozilla:''' click ''reload''(or ''ctrl-r''), '''IE / Opera:''' ''ctrl-f5'', '''Safari:''' ''cmd-r'', '''Konqueror''' ''ctrl-r''.", 'userjspreview' => "== Previewing your user javascript. == -- 2.20.1