*Add {{plural}} to Protect-cascadeon too. (bug 8664)
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 24 Apr 2007 02:04:04 +0000 (02:04 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 24 Apr 2007 02:04:04 +0000 (02:04 +0000)
includes/ProtectionForm.php
languages/messages/MessagesEn.php

index d803b94..4c4f2b3 100644 (file)
@@ -114,7 +114,7 @@ class ProtectionForm {
                                $titles .= '* [[:' . $title->getPrefixedText() . "]]\n";
                        }
 
-                       $notice = wfMsg( 'protect-cascadeon' ) . "\r\n$titles";
+                       $notice = wfMsgExt( 'protect-cascadeon', array('parsemag'), count($cascadeSources) ) . "\r\n$titles";
 
                        $wgOut->addWikiText( $notice );
                }
index fa74b06..0ce2328 100644 (file)
@@ -1825,7 +1825,7 @@ current settings for the page <strong>$1</strong>:',
 Here are the current settings for the page <strong>$1</strong>:',
 'protect-locked-access' => 'Your account does not have permission to change page protection levels.
 Here are the current settings for the page <strong>$1</strong>:',
-'protect-cascadeon' => "This page is currently protected because it is included in the following pages, which have cascading protection turned on. You can change this page's protection level, but it will not affect the cascading protection.",
+'protect-cascadeon' => "This page is currently protected because it is included in the following {{PLURAL:$1|page, which has|pages, which have}} cascading protection turned on. You can change this page's protection level, but it will not affect the cascading protection.",
 'protect-default' => '(default)',
 'protect-level-autoconfirmed' => 'Block unregistered users',
 'protect-level-sysop' => 'Sysops only',