From dae4c487274fb0ee50eba2999744cb8bfcd1e79b Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Wed, 11 Aug 2010 15:27:59 -0300 Subject: gettext() fixes on diag_backup.php --- usr/local/www/diag_backup.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 882240f..e23a279 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) {
- : + @@ -592,7 +592,7 @@ function backuparea_change(obj) {
- : + @@ -642,7 +642,7 @@ function backuparea_change(obj) {

">

-

:

+



-- cgit v1.1