From 2276951806ab499f4129c51702160f0d18f875a3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 24 Apr 2007 01:59:47 +0000 Subject: [PATCH] *Use proper number grammar for cascading protection notices (bug 8664) --- includes/EditPage.php | 2 +- includes/OutputPage.php | 2 +- languages/messages/MessagesEn.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 5eea10ccc7..bec6e30081 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1005,7 +1005,7 @@ class EditPage { list($cascadeSources, $restrictions) = $this->mTitle->getCascadeProtectionSources(); if ( count($cascadeSources) > 0 ) { # Explain, and list the titles responsible - $notice = wfMsg( 'cascadeprotectedwarning' ) . "\n"; + $notice = wfMsgExt( 'cascadeprotectedwarning', array('parsemag'), count($cascadeSources) ) . "\n"; foreach( $cascadeSources as $id => $page ) $notice .= '* [[:' . $page->getPrefixedText() . "]]\n"; } diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c7f7cbc81c..96bd587cc1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -923,7 +923,7 @@ class OutputPage { $titles .= '* [[:' . $title->getPrefixedText() . "]]\n"; } - $notice = wfMsg( 'cascadeprotected' ) . "\n$titles"; + $notice = wfMsgExt( 'cascadeprotected', array('parsemag'), count($cascadeSources) ) . "\n$titles"; $this->addWikiText( $notice ); } else { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 3c24b424b6..fa74b06f45 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -783,7 +783,7 @@ Query: $2', 'protectedinterface' => 'This page provides interface text for the software, and is locked to prevent abuse.', '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 pages, which are protected with the "cascading" option turned on:', +'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:', # Login and logout pages # @@ -1020,7 +1020,7 @@ so you will not be able to save your edits right now. You may wish to cut-n-past the text into a text file and save it for later.', 'protectedpagewarning' => "WARNING: This page has been locked so that only users with sysop privileges can edit it.", 'semiprotectedpagewarning' => "'''Note:''' This page has been locked so that only registered users can edit it.", -'cascadeprotectedwarning' => "'''Warning:''' This page has been locked so that only users with sysop privileges can edit it, because it is included in the following cascade-protected pages:", +'cascadeprotectedwarning' => "'''Warning:''' This page has been locked so that only users with sysop privileges can edit it, because it is included in the following cascade-protected {{PLURAL:$1|page|pages}}:", 'templatesused' => 'Templates used on this page:', 'templatesusedpreview' => 'Templates used in this preview:', 'templatesusedsection' => 'Templates used in this section:', -- 2.20.1