From 735bd3b5bf49082d3314e5984f7f8d21cb9668b5 Mon Sep 17 00:00:00 2001 From: madman Date: Tue, 21 Aug 2012 13:01:16 +0000 Subject: [PATCH] Bug 39524 - action=info uses untranslated (raw) protection permissions * Use restriction-$restrictionType message as parameter * Updated documentation, lcfirst moved to translation Change-Id: Ib62a0b9e273e136e09cf0c361b7f9b709b34f583 --- includes/actions/InfoAction.php | 4 +++- languages/messages/MessagesEn.php | 2 +- languages/messages/MessagesQqq.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 26a6e47a9c..19a0b06ea4 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -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 ); } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index e290a4c976..31eb8f14bf 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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 ($1)', +'pageinfo-restriction' => 'Page protection ({{lcfirst:$1}})', '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)', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index bcea82e33a..45c2a8c6d5 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -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: -- 2.20.1