Added language string 'talkpagetext' before talk page edit box
authorMr. E23 <e23@users.mediawiki.org>
Fri, 5 Mar 2004 21:44:38 +0000 (21:44 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Fri, 5 Mar 2004 21:44:38 +0000 (21:44 +0000)
includes/EditPage.php
languages/Language.php

index cbee67c..288cb25 100644 (file)
@@ -95,9 +95,12 @@ class EditPage {
                $wpTextbox1 = rtrim ( $wpTextbox1 ) ; # To avoid text getting longer on each preview
 
                if(!$this->mTitle->getArticleID()) { # new article
-
                        $wgOut->addWikiText(wfmsg("newarticletext"));
+               }
 
+               $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK );
+               if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) {
+                       $wgOut->addWikiText(wfmsg("talkpagetext"));
                }
 
                # Attempt submission here.  This will check for edit conflicts,
index 5b1d874..46211f3 100644 (file)
@@ -702,6 +702,7 @@ Your IP address is $3. Please include this address in any queries you make.
 To create the page, start typing in the box below 
 (see the [[$wgMetaNamespace:Help|help page]] for more info).
 If you are here by mistake, just click your browser's '''back''' button.",
+"talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
 "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)",
 "updated"              => "(Updated)",