Bug 39524 - action=info uses untranslated (raw) protection permissions
authormadman <madman.enwiki@gmail.com>
Tue, 21 Aug 2012 13:01:16 +0000 (13:01 +0000)
committermadman <madman.enwiki@gmail.com>
Wed, 22 Aug 2012 01:06:33 +0000 (01:06 +0000)
* Use restriction-$restrictionType message as parameter
* Updated documentation, lcfirst moved to translation

Change-Id: Ib62a0b9e273e136e09cf0c361b7f9b709b34f583

includes/actions/InfoAction.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php

index 26a6e47..19a0b06 100644 (file)
@@ -186,7 +186,9 @@ class InfoAction extends FormlessAction {
                        }
 
                        $table = $this->addRow( $table,
-                               $this->msg( 'pageinfo-restriction', $restrictionType )->parse(), $message
+                               $this->msg( 'pageinfo-restriction',
+                                       $this->msg( "restriction-$restrictionType" )->plain()
+                               )->parse(), $message
                        );
                }
 
index e290a4c..31eb8f1 100644 (file)
@@ -3758,7 +3758,7 @@ This is probably caused by a link to a blacklisted external site.',
 'pageinfo-authors'             => 'Total number of distinct authors',
 'pageinfo-recent-edits'        => 'Recent number of edits (within past $1)',
 'pageinfo-recent-authors'      => 'Recent number of distinct authors',
-'pageinfo-restriction'         => 'Page protection (<code>$1</code>)',
+'pageinfo-restriction'         => 'Page protection (<code>{{lcfirst:$1}}</code>)',
 'pageinfo-magic-words'         => 'Magic {{PLURAL:$1|word|words}} ($1)',
 'pageinfo-hidden-categories'   => 'Hidden {{PLURAL:$1|category|categories}} ($1)',
 'pageinfo-templates'           => 'Transcluded {{PLURAL:$1|template|templates}} ($1)',
index bcea82e..45c2a8c 100644 (file)
@@ -3484,7 +3484,7 @@ See also {{msg-mw|Anonuser}} and {{msg-mw|Siteusers}}.',
 'pageinfo-recent-edits' => 'The number of times the page has been edited recently. $1 is a localised duration (e.g. 9 days).',
 'pageinfo-recent-authors' => 'The number of users who have edited the page recently.',
 'pageinfo-restriction' => 'Parameters:
-* $1 is the type of page protection.',
+* $1 is the type of page protection (message restriction-$type, preferably in lowercase).',
 'pageinfo-magic-words' => 'The list of magic words on the page. Parameters:
 * $1 is the number of magic words on the page.',
 'pageinfo-hidden-categories' => 'The list of hidden categories on the page. Parameters: