From: Kashinath Patekar <42115482+stellarbeam@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:17:06 +0000 (+0530) Subject: Bug 1237874 - File size unit always plural: "1 bytes" X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c349a96d3d0ed5f9fe87258a8ca42594ff338c56;p=thirdparty%2Fbugzilla.git Bug 1237874 - File size unit always plural: "1 bytes" --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index a8d6baa77..59de9eac4 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -807,7 +807,7 @@ sub create { my %units = ('KB' => 1024, 'MB' => 1024 * 1024, 'GB' => 1024 * 1024 * 1024,); if ($data < 1024) { - return "$data bytes"; + return "$data byte".($data == 1 ? '':'s'); } else { my $u;