From d4ce49fe148bad07dd7b2b813428f3e204070513 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 7 Jul 2007 04:58:44 +0000 Subject: [PATCH] * 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. --- includes/OutputPage.php | 2 +- languages/messages/MessagesEn.php | 2 +- maintenance/language/messages.inc | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a181d6d681..c6724cd360 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -982,7 +982,7 @@ class OutputPage { $ns = $wgTitle->getNamespace() == NS_MAIN ? wfMsg( 'nstab-main' ) : $wgTitle->getNsText(); - $this->addWikiText( wfMsg( 'namespaceprotectedtext', $ns, + $this->addWikiText( wfMsg( 'namespaceprotected', $ns, implode( ', ', $wgNamespaceProtection[ $wgTitle->getNamespace() ] ) ) ); } else { // Standard protection diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 18b4d5e8e4..1a143b74aa 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -785,7 +785,7 @@ Query: $2', '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.", 'sqlhidden' => '(SQL query hidden)', '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:', -'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.', +'namespaceprotected' => "You do not have permission to edit pages in the '''$1''' namespace.", # Login and logout pages 'logouttitle' => 'User logout', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index aa5eb3e8df..ee04e5e59b 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -315,6 +315,7 @@ $wgMessageStructure = array( 'viewsource', 'viewsourcefor', 'protectedpagetext', + 'namespaceprotected', 'viewsourcetext', 'protectedinterface', 'editinginterface', -- 2.20.1