From 2295b0db577d4666e9e6a362a4c66d986753e6af Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 23 Dec 2015 21:23:58 +0100 Subject: [PATCH] SpecialMediaSattistics: Add header for "Total file size" Bug: T122208 Change-Id: I1fb9f3c80e2def9623ce8b5d4e3765fe9cbafa25 --- includes/specials/SpecialMediaStatistics.php | 2 ++ languages/i18n/en.json | 1 + languages/i18n/qqq.json | 1 + 3 files changed, 4 insertions(+) diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index aeebc42ddf..6e67df02f5 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -139,6 +139,8 @@ class MediaStatisticsPage extends QueryPage { } if ( $prevMediaType !== null ) { $this->outputTableEnd(); + // add total size of all files + $this->outputMediaType( 'total' ); $this->getOutput()->addWikiText( $this->msg( 'mediastatistics-allbytes' ) ->numParams( $this->totalSize ) diff --git a/languages/i18n/en.json b/languages/i18n/en.json index ca4c88ef70..1665e21f01 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -3876,6 +3876,7 @@ "mediastatistics-header-text": "Textual", "mediastatistics-header-executable": "Executables", "mediastatistics-header-archive": "Compressed formats", + "mediastatistics-header-total": "All files", "json-warn-trailing-comma": "$1 trailing {{PLURAL:$1|comma was|commas were}} removed from JSON", "json-error-unknown": "There was a problem with the JSON. Error: $1", "json-error-depth": "The maximum stack depth has been exceeded", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 2b54491562..87470bfc30 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -4051,6 +4051,7 @@ "mediastatistics-header-text": "Header on [[Special:MediaStatistics]] for file types that are in the text category. This includes simple text formats, including plain text formats, json, csv, and xml. Source code of compiled programming languages may be included here in the future, but isn't currently.", "mediastatistics-header-executable": "Header on [[Special:MediaStatistics]] for file types that are in the executable category. This includes things like source files for interpreted programming language (Shell scripts, javascript, etc).", "mediastatistics-header-archive": "Header on [[Special:MediaStatistics]] for file types that are in the archive category. Includes things like tar, zip, gzip etc.", + "mediastatistics-header-total": "Header on [[Special:MediaStatistics]] for a summary of all file types.", "json-warn-trailing-comma": "A warning message notifying that JSON text was automatically corrected by removing erroneous commas.\n\nParameters:\n* $1 - number of commas that were removed\n{{Related|Json-error}}", "json-error-unknown": "User error message when there’s an unknown error.\n\nThis error is shown if we received an unexpected value from PHP. See http://php.net/manual/en/function.json-last-error.php\n\nParameters:\n* $1 - integer error code\n{{Related|Json-error}}", "json-error-depth": "User error message when the maximum stack depth is exceeded.\nSee http://php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", -- 2.20.1