From: jenkins-bot Date: Sun, 25 Aug 2013 18:06:27 +0000 (+0000) Subject: Merge "Special:PagesWithProp: Use Language#formatSize" X-Git-Tag: 1.31.0-rc.0~18879 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=602b95ea0c56a128ff94ea1ac079fa6ddacfaf83;hp=fc63d1567acaff261104cd61288b650e902d87dc;p=lhc%2Fweb%2Fwiklou.git Merge "Special:PagesWithProp: Use Language#formatSize" --- 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 88340781bf..f98267b8ec 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2674,8 +2674,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 fa3d317e04..4c8c3ed812 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -4510,13 +4510,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}}',