diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 882240fcd5..e23a2791c2 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -272,7 +272,7 @@ if ($_POST) { /* read the file contents */ $data = file_get_contents($_FILES['conffile']['tmp_name']); if(!$data) { - log_error(gettext("Warning, could not read file") . " " . $_FILES['conffile']['tmp_name']); + log_error(sprintf(gettext("Warning, could not read file %s"), $_FILES['conffile']['tmp_name'])); return 1; } @@ -301,7 +301,7 @@ if ($_POST) { } } else { if(!stristr($data, "<" . $g['xml_rootobj'] . ">")) { - $input_errors[] = gettext("You have selected to restore the full configuration but we could not locate a") . " " . $g['xml_rootobj'] . " " . gettext("tag."); + $input_errors[] = sprintf(gettext("You have selected to restore the full configuration but we could not locate a %s tag."), $g['xml_rootobj']); } else { /* restore the entire configuration */ file_put_contents($_FILES['conffile']['tmp_name'], $data); @@ -584,7 +584,7 @@ function backuparea_change(obj) {
| - =gettext("Password"); ?> : + =gettext("Password:"); ?> | @@ -592,7 +592,7 @@ function backuparea_change(obj) { |
| - =gettext("confirm"); ?> : + =gettext("confirm:"); ?> | @@ -642,7 +642,7 @@ function backuparea_change(obj) { |
">
-=gettext("Note"); ?>:
=gettext("The firewall will reboot after restoring the configuration."); ?>
=gettext("Note:"); ?>
=gettext("The firewall will reboot after restoring the configuration."); ?>