summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-06-21 10:02:10 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-06-21 10:40:52 -0300
commit8246efa6f6279f2c51d357b206a37b81982c17b4 (patch)
tree2c6dd2a667b8267b163bf2dbbe137d1ebac3b73f /usr/local/www/diag_backup.php
parenta250f179058bb627261fdd5bc28c47489d9bbcb0 (diff)
downloadpfsense-8246efa6f6279f2c51d357b206a37b81982c17b4.zip
pfsense-8246efa6f6279f2c51d357b206a37b81982c17b4.tar.gz
Few adjustements on gettext
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 4aa3b77..6ce7b8d 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -80,7 +80,7 @@ function add_base_packages_menu_items() {
}
}
if($modified_config) {
- write_confg("Restored base_package menus after configuration restore.");
+ write_confg(gettext("Restored base_package menus after configuration restore."));
$config = parse_config(true);
}
}
@@ -153,13 +153,13 @@ if ($_POST['apply']) {
if ($_POST) {
unset($input_errors);
- if (stristr($_POST['Submit'], "Restore configuration"))
+ if (stristr($_POST['Submit'], gettext("Restore configuration")))
$mode = "restore";
- else if (stristr($_POST['Submit'], "Reinstall"))
+ else if (stristr($_POST['Submit'], gettext("Reinstall")))
$mode = "reinstallpackages";
- else if (stristr($_POST['Submit'], "Download"))
+ else if (stristr($_POST['Submit'], gettext("Download")))
$mode = "download";
- else if (stristr($_POST['Submit'], "Restore version"))
+ else if (stristr($_POST['Submit'], gettext("Restore version")))
$mode = "restore_ver";
if ($_POST["nopackages"] <> "")
@@ -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(gettext("Warning, could not read file") . " " . $_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[] = gettext("You have selected to restore the full configuration but we could not locate a") . " " . $g['xml_rootobj'] . " " . gettext("tag.");
} else {
/* restore the entire configuration */
file_put_contents($_FILES['conffile']['tmp_name'], $data);
@@ -527,7 +527,7 @@ function backuparea_change(obj) {
<?php if (is_subsystem_dirty('restore')): ?><p>
<form action="reboot.php" method="post">
<input name="Submit" type="hidden" value=" Yes ">
-<?php print_info_box(gettext("The firewall configuration has been changed.<br/>The firewall is now rebooting."));?><br>
+<?php print_info_box(gettext("The firewall configuration has been changed.") . "<br/>" . gettext("The firewall is now rebooting."));?><br>
</form>
<?php endif; ?>
<form action="diag_backup.php" method="post" name="iform" enctype="multipart/form-data">
OpenPOWER on IntegriCloud