Bugzilla – Attachment 152313 Details for
Bug 33857
Reduce and resize local cover images
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33857: Change output messages
Bug-33857-Change-output-messages.patch (text/plain), 1.79 KB, created by
Hinemoea Viault
on 2023-06-13 16:41:08 UTC
(
hide
)
Description:
Bug 33857: Change output messages
Filename:
MIME Type:
Creator:
Hinemoea Viault
Created:
2023-06-13 16:41:08 UTC
Size:
1.79 KB
patch
obsolete
>From 33849e65a25ce078f17af67c4c76a2eead9627c0 Mon Sep 17 00:00:00 2001 >From: Hinemoea Viault <hinemoea.viault@inlibro.com> >Date: Tue, 13 Jun 2023 12:40:32 -0400 >Subject: [PATCH] Bug 33857: Change output messages > >--- > misc/maintenance/resize_cover_images.pl | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/misc/maintenance/resize_cover_images.pl b/misc/maintenance/resize_cover_images.pl >index 6f9df99d7b..a15d5d14e8 100755 >--- a/misc/maintenance/resize_cover_images.pl >+++ b/misc/maintenance/resize_cover_images.pl >@@ -30,13 +30,13 @@ $| = 1; > my @images = Koha::CoverImages->as_list(); > my $image; > my $i =0; >-print "Vous avez " . scalar @images . " images. \n"; >+print "You have " . scalar @images . " images. \n"; > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("SELECT round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES WHERE table_schema = '$ENV{'KOHADB'}' AND table_name = 'cover_images';"); > $sth->execute(); > my @test = $sth->fetchrow_array(); >-print "La taile de tout les images dans $ENV{'KOHADB'} est de ". $test[0]. "MG avant.\n"; >+print "The size of all images in $ENV{'KOHADB'} is ". $test[0]. "MB before.\n"; > print "[..........] 0-1000 images \r ["; > for ( @images ) { > $i++; >@@ -62,7 +62,7 @@ for ( @images ) { > } > } > } >-print "\n". $i . " images traité.\n"; >+print "\n". $i . " processed images.\n"; > my $query = "optimize table cover_images"; > > my $sthOp = $dbh->prepare($query); >@@ -71,4 +71,4 @@ $sthOp->execute; > > $sth->execute(); > @test = $sth->fetchrow_array(); >-print "La taile de tout les images dans $ENV{'KOHADB'} est de ". $test[0]. "MG apres.\n"; >\ No newline at end of file >+print "The size of all images in $ENV{'KOHADB'} is ". $test[0]. "MB after.\n"; >\ No newline at end of file >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33857
:
151780
|
151781
|
151810
|
152307
|
152308
|
152313
|
171103