From 788a72dc8884c7adc065802b0b70402201b4dbb9 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Sat, 17 Aug 2013 15:24:48 +0200 Subject: [PATCH] Special:PagesWithProp: Use Language#formatSize Followup to Ib2db241a. Change-Id: I138ecaf20feac162a554591332e5c4d1e3234768 --- includes/specials/SpecialPagesWithProp.php | 2 +- languages/messages/MessagesEn.php | 4 ++-- languages/messages/MessagesQqq.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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}}', -- 2.20.1