From: madman Date: Tue, 21 Aug 2012 13:01:16 +0000 (+0000) Subject: Bug 39524 - action=info uses untranslated (raw) protection permissions X-Git-Tag: 1.31.0-rc.0~22639^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=735bd3b5bf49082d3314e5984f7f8d21cb9668b5;p=lhc%2Fweb%2Fwiklou.git Bug 39524 - action=info uses untranslated (raw) protection permissions * Use restriction-$restrictionType message as parameter * Updated documentation, lcfirst moved to translation Change-Id: Ib62a0b9e273e136e09cf0c361b7f9b709b34f583 --- 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: