++Precision
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 31 Mar 2005 12:35:32 +0000 (12:35 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 31 Mar 2005 12:35:32 +0000 (12:35 +0000)
includes/SpecialUpload.php
languages/Language.php

index b3a8f63..0b53dbd 100644 (file)
@@ -233,7 +233,7 @@ class UploadForm {
                        if ( $wgUploadSizeWarning && ( $this->mUploadSize > $wgUploadSizeWarning ) ) {
                                # TODO: Format $wgUploadSizeWarning to something that looks better than the raw byte
                                # value, perhaps add GB,MB and KB suffixes?
-                               $warning .= '<li>'.wfMsg( 'largefile', $wgUploadSizeWarning  ).'</li>';
+                               $warning .= '<li>'.wfMsg( 'largefile', $wgUploadSizeWarning, $this->mUploadSize ).'</li>';
                        }
                        if ( $this->mUploadSize == 0 ) {
                                $warning .= '<li>'.wfMsg( 'emptyfile' ).'</li>';
index e6de493..6d04ef7 100644 (file)
@@ -1011,7 +1011,7 @@ agrees to license it under the terms of the $1.",
 'illegalfilename'      => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
 'badfilename'  => "Image name has been changed to \"$1\".",
 'badfiletype'  => "\".$1\" is not a recommended image file format.",
-'largefile'            => 'It is recommended that images not exceed $1 bytes in size.',
+'largefile'            => 'It is recommended that images not exceed $1 bytes in size, this file is $2 bytes',
 'emptyfile'            => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
 'fileexists'           => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
 'successfulupload' => 'Successful upload',