r23826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23825‎ | r23826 | r23827 >
Date:04:58, 7 July 2007
Author:robchurch
Status:old
Tags:
Comment:
* Rename "namespaceprotectedtext" to "namespaceprotected"
* Simpler default message text that covers more cases - message might be shown to logged-in users who don't have permissions, etc.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -315,6 +315,7 @@
316316 'viewsource',
317317 'viewsourcefor',
318318 'protectedpagetext',
 319+ 'namespaceprotected',
319320 'viewsourcetext',
320321 'protectedinterface',
321322 'editinginterface',
Index: trunk/phase3/includes/OutputPage.php
@@ -982,7 +982,7 @@
983983 $ns = $wgTitle->getNamespace() == NS_MAIN
984984 ? wfMsg( 'nstab-main' )
985985 : $wgTitle->getNsText();
986 - $this->addWikiText( wfMsg( 'namespaceprotectedtext', $ns,
 986+ $this->addWikiText( wfMsg( 'namespaceprotected', $ns,
987987 implode( ', ', $wgNamespaceProtection[ $wgTitle->getNamespace() ] ) ) );
988988 } else {
989989 // Standard protection
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -785,7 +785,7 @@
786786 'editinginterface' => "'''Warning:''' You are editing a page which is used to provide interface text for the software. Changes to this page will affect the appearance of the user interface for other users.",
787787 'sqlhidden' => '(SQL query hidden)',
788788 'cascadeprotected' => 'This page has been protected from editing, because it is included in the following {{PLURAL:$1|page|pages}}, which are protected with the "cascading" option turned on:',
789 -'namespaceprotectedtext'=>'Because this page resides in the $1 namespace, editing of it has been restricted to users with the rights "$2". Please [[Special:Userlogin|log-in]] or contact an administrator to request permission to edit it.',
 789+'namespaceprotected' => "You do not have permission to edit pages in the '''$1''' namespace.",
790790
791791 # Login and logout pages
792792 'logouttitle' => 'User logout',

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log