From e831d9b6eef8f1d5af56540f7510c2a5295a8598 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 6 Aug 2008 08:04:11 +0000 Subject: [PATCH] Allow PLURAL for 'expensive-parserfunction-warning' --- includes/parser/Parser.php | 2 +- languages/messages/MessagesEn.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 9f925d7231..b30ac8236c 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2714,7 +2714,7 @@ class Parser function limitationWarn( $limitationType, $current=null, $max=null) { $msgName = $limitationType . '-warning'; //does no harm if $current and $max are present but are unnecessary for the message - $warning = wfMsg( $msgName, $current, $max); + $warning = wfMsgExt( $msgName, array( 'parsemag', 'escape' ), $current, $max ); $this->mOutput->addWarning( $warning ); $cat = Title::makeTitleSafe( NS_CATEGORY, wfMsgForContent( $limitationType . '-category' ) ); if ( $cat ) { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a080b11e55..389f17393d 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1170,7 +1170,7 @@ The deletion log for this page is provided here for convenience:", # Parser/template warnings 'expensive-parserfunction-warning' => 'Warning: This page contains too many expensive parser function calls. -It should have less than $2, there are now $1.', +It should have less than $2 {{PLURAL:$2|call|calls}}, there {{PLURAL:$1|is now $1 call|are now $1 calls}}.', 'expensive-parserfunction-category' => 'Pages with too many expensive parser function calls', 'post-expand-template-inclusion-warning' => 'Warning: Template include size is too large. Some templates will not be included.', @@ -1515,7 +1515,7 @@ please see math/README to configure.', 'right-reupload-shared' => 'Override files on the shared media repository locally', 'right-upload_by_url' => 'Upload a file from a URL address', 'right-purge' => 'Purge the site cache for a page without confirmation', -'right-autoconfirmed' => 'Edit semi-protected pages', +'right-autoconfirmed' => 'Edit [[semi]]-protected pages', 'right-bot' => 'Be treated as an automated process', 'right-nominornewtalk' => 'Not have minor edits to discussion pages trigger the new messages prompt', 'right-apihighlimits' => 'Use higher limits in API queries', @@ -2026,7 +2026,7 @@ There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] a 'listgrouprights-helppage' => 'Help:Group rights', 'listgrouprights-members' => '(list of members)', 'listgrouprights-right-display' => '$1 ($2)', # only translate this message to other languages if you have to change it -'listgrouprights-addgroup' => 'Can add {{PLURAL:$2|group|groups}}: $1', +'listgrouprights-addgroup' => 'Can [[add]] {{PLURAL:$2|group|groups}}: $1', 'listgrouprights-removegroup' => 'Can remove {{PLURAL:$2|group|groups}}: $1', 'listgrouprights-addgroup-all' => 'Can add all groups', 'listgrouprights-removegroup-all' => 'Can remove all groups', -- 2.20.1