Skip to content

Commit

Permalink
Improve wording of final backup message #918
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Oct 11, 2024
1 parent 659234d commit 16ff49c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions backups-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1954,10 +1954,15 @@ sub backup_domains

# Show some status
if ($ok) {
&$first_print(
($okcount || $errcount ?
&text('backup_finalstatus', $okcount, $errcount) : "")."\n".
($vcount ? &text('backup_finalstatus2', $vcount) : ""));
if ($okcount && $errcount) {
&$first_print(&text('backup_finalstatus', $okcount, $errcount));
}
elsif ($okcount) {
&$first_print(&text('backup_finalstatusok', $okcount));
}
if ($vcount) {
&$first_print(&text('backup_finalstatus2', $vcount));
}
if ($errcount) {
&$first_print(&text('backup_errorsites',
join(" ", map { $_->{'dom'} } @errdoms)));
Expand Down
5 changes: 3 additions & 2 deletions lang/en
Original file line number Diff line number Diff line change
Expand Up @@ -2729,8 +2729,9 @@ backup_upload10=Uploading archive to Backblaze ..
backup_upload11=Uploading archive to Azure Blob Storage ..
backup_upload12=Uploading archive to Google Drive ..
backup_uploadfailed=.. upload failed! $1
backup_finalstatus=$1 servers backed up successfully, $2 had errors.
backup_finalstatus2=$1 Virtualmin configuration settings backed up successfully.
backup_finalstatus=$1 virtual servers backed up successfully, $2 had errors.
backup_finalstatusok=$1 virtual servers backed up successfully.
backup_finalstatus2=$1 Virtualmin system configuration settings backed up successfully.
backup_errorsites=Servers with errors: $1
backup_emode=No valid backup destination mode selected
backup_es3nopath=You must specify a filename when backing up to a single file on S3
Expand Down

0 comments on commit 16ff49c

Please sign in to comment.