Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -95,9 +95,12 @@ |
96 | 96 | $wpTextbox1 = rtrim ( $wpTextbox1 ) ; # To avoid text getting longer on each preview |
97 | 97 | |
98 | 98 | if(!$this->mTitle->getArticleID()) { # new article |
99 | | - |
100 | 99 | $wgOut->addWikiText(wfmsg("newarticletext")); |
| 100 | + } |
101 | 101 | |
| 102 | + $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK ); |
| 103 | + if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) { |
| 104 | + $wgOut->addWikiText(wfmsg("talkpagetext")); |
102 | 105 | } |
103 | 106 | |
104 | 107 | # Attempt submission here. This will check for edit conflicts, |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -702,6 +702,7 @@ |
703 | 703 | To create the page, start typing in the box below |
704 | 704 | (see the [[$wgMetaNamespace:Help|help page]] for more info). |
705 | 705 | If you are here by mistake, just click your browser's '''back''' button.", |
| 706 | +"talkpagetext" => "<!-- MediaWiki:talkpagetext -->", |
706 | 707 | "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.'' ", |
707 | 708 | "noarticletext" => "(There is currently no text in this page)", |
708 | 709 | "updated" => "(Updated)", |