r38694 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38693‎ | r38694 | r38695 >
Date:08:04, 6 August 2008
Author:raymond
Status:old
Tags:
Comment:
Allow PLURAL for 'expensive-parserfunction-warning'
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -2714,7 +2714,7 @@
27152715 function limitationWarn( $limitationType, $current=null, $max=null) {
27162716 $msgName = $limitationType . '-warning';
27172717 //does no harm if $current and $max are present but are unnecessary for the message
2718 - $warning = wfMsg( $msgName, $current, $max);
 2718+ $warning = wfMsgExt( $msgName, array( 'parsemag', 'escape' ), $current, $max );
27192719 $this->mOutput->addWarning( $warning );
27202720 $cat = Title::makeTitleSafe( NS_CATEGORY, wfMsgForContent( $limitationType . '-category' ) );
27212721 if ( $cat ) {
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1170,7 +1170,7 @@
11711171 # Parser/template warnings
11721172 'expensive-parserfunction-warning' => 'Warning: This page contains too many expensive parser function calls.
11731173
1174 -It should have less than $2, there are now $1.',
 1174+It should have less than $2 {{PLURAL:$2|call|calls}}, there {{PLURAL:$1|is now $1 call|are now $1 calls}}.',
11751175 'expensive-parserfunction-category' => 'Pages with too many expensive parser function calls',
11761176 'post-expand-template-inclusion-warning' => 'Warning: Template include size is too large.
11771177 Some templates will not be included.',
@@ -1515,7 +1515,7 @@
15161516 'right-reupload-shared' => 'Override files on the shared media repository locally',
15171517 'right-upload_by_url' => 'Upload a file from a URL address',
15181518 'right-purge' => 'Purge the site cache for a page without confirmation',
1519 -'right-autoconfirmed' => 'Edit semi-protected pages',
 1519+'right-autoconfirmed' => 'Edit [[semi]]-protected pages',
15201520 'right-bot' => 'Be treated as an automated process',
15211521 'right-nominornewtalk' => 'Not have minor edits to discussion pages trigger the new messages prompt',
15221522 'right-apihighlimits' => 'Use higher limits in API queries',
@@ -2026,7 +2026,7 @@
20272027 'listgrouprights-helppage' => 'Help:Group rights',
20282028 'listgrouprights-members' => '(list of members)',
20292029 'listgrouprights-right-display' => '$1 ($2)', # only translate this message to other languages if you have to change it
2030 -'listgrouprights-addgroup' => 'Can add {{PLURAL:$2|group|groups}}: $1',
 2030+'listgrouprights-addgroup' => 'Can [[add]] {{PLURAL:$2|group|groups}}: $1',
20312031 'listgrouprights-removegroup' => 'Can remove {{PLURAL:$2|group|groups}}: $1',
20322032 'listgrouprights-addgroup-all' => 'Can add all groups',
20332033 'listgrouprights-removegroup-all' => 'Can remove all groups',

Follow-up revisions

RevisionCommit summaryAuthorDate
r38695Remove crap from r38694 :-(raymond08:23, 6 August 2008

Status & tagging log