From: MatmaRex Date: Sat, 17 Aug 2013 13:24:48 +0000 (+0200) Subject: Special:PagesWithProp: Use Language#formatSize X-Git-Tag: 1.31.0-rc.0~18879^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=788a72dc8884c7adc065802b0b70402201b4dbb9;p=lhc%2Fweb%2Fwiklou.git Special:PagesWithProp: Use Language#formatSize Followup to Ib2db241a. Change-Id: I138ecaf20feac162a554591332e5c4d1e3234768 --- diff --git a/includes/specials/SpecialPagesWithProp.php b/includes/specials/SpecialPagesWithProp.php index 199c5cdeac..1c77a0c7ac 100644 --- a/includes/specials/SpecialPagesWithProp.php +++ b/includes/specials/SpecialPagesWithProp.php @@ -136,7 +136,7 @@ class SpecialPagesWithProp extends QueryPage { if ( $isBinary || $isTooLong ) { $message = $this ->msg( $isBinary ? 'pageswithprop-prophidden-binary' : 'pageswithprop-prophidden-long' ) - ->numParams( round( $valueLength / 1024, 2 ) ); + ->params( $this->getLanguage()->formatSize( $valueLength ) ); $propValue = Html::element( 'span', array( 'class' => 'prop-value-hidden' ), $message->text() ); } else { diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 67fe889f8c..b29493e9e4 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2676,8 +2676,8 @@ A page is treated as a disambiguation page if it uses a template that is linked 'pageswithprop-text' => 'This page lists pages that use a particular page property.', 'pageswithprop-prop' => 'Property name:', 'pageswithprop-submit' => 'Go', -'pageswithprop-prophidden-long' => 'long text property value hidden ($1 kilobytes)', -'pageswithprop-prophidden-binary' => 'binary property value hidden ($1 kilobytes)', +'pageswithprop-prophidden-long' => 'long text property value hidden ($1)', +'pageswithprop-prophidden-binary' => 'binary property value hidden ($1)', 'doubleredirects' => 'Double redirects', 'doubleredirects-summary' => '', # do not translate or duplicate this message to other languages diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 02938d6040..0b6bff28cc 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -4425,13 +4425,13 @@ This block of text is shown on [[:Special:Disambiguations]]. 'pageswithprop-prophidden-long' => 'Information shown on [[Special:PagesWithProp]] when property value is longer than 1 kilobyte. Parameters: -* $1 - size of property value in kilobytes +* $1 - size of property value, formatted See also: * {{msg-mw|pageswithprop-prophidden-binary}}', 'pageswithprop-prophidden-binary' => 'Information shown on [[Special:PagesWithProp]] when property value contains binary data. Parameters: -* $1 - size of property value in kilobytes +* $1 - size of property value, formatted See also: * {{msg-mw|pageswithprop-prophidden-long}}',