preview note
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 10 May 2004 17:14:01 +0000 (17:14 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 10 May 2004 17:14:01 +0000 (17:14 +0000)
includes/EditPage.php
languages/Language.php

index 7e891a8..c3d132d 100644 (file)
@@ -247,8 +247,10 @@ class EditPage {
 
                if( wfReadOnly() ) {
                        $wgOut->addHTML( "<strong>" .
-                               wfMsg( "readonlywarning" ) .
-                               "</strong>" );
+                       wfMsg( "readonlywarning" ) .
+                       "</strong>" );
+               } else if ( $isCssJsSubpage ) {
+                       $wgOut->addHTML( wfMsg( "usercssjsyoucanpreview" ));
                }
                if( $this->mTitle->isProtected() ) {
                        $wgOut->addHTML( "<strong>" . wfMsg( "protectedpagewarning" ) .
index c06e3dd..42c3aeb 100644 (file)
@@ -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 <em>saving</em> 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. ==