Merge "Special:PagesWithProp: Use Language#formatSize"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 25 Aug 2013 18:06:27 +0000 (18:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 25 Aug 2013 18:06:27 +0000 (18:06 +0000)
includes/specials/SpecialPagesWithProp.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php

index 199c5cd..1c77a0c 100644 (file)
@@ -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 {
index 8834078..f98267b 100644 (file)
@@ -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
index fa3d317..4c8c3ed 100644 (file)
@@ -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}}',