summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.initial.defaults
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-10 13:50:46 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-10 13:50:46 +0545
commita2317d7dcdc123c5057ff78395050df995f1efca (patch)
tree486cde2694186a176873612d6170f34de35b2000 /src/etc/rc.initial.defaults
parentc0499d48618013412a4b2ace07b04dde7a0df955 (diff)
downloadpfsense-a2317d7dcdc123c5057ff78395050df995f1efca.zip
pfsense-a2317d7dcdc123c5057ff78395050df995f1efca.tar.gz
Internationalize console reset to factory defaults
This is another one that was using echo EOD stuff and needed a space after "Do you want to proceed [y|n]?".
Diffstat (limited to 'src/etc/rc.initial.defaults')
-rwxr-xr-xsrc/etc/rc.initial.defaults19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/etc/rc.initial.defaults b/src/etc/rc.initial.defaults
index 40ceaf9..c80a18d 100755
--- a/src/etc/rc.initial.defaults
+++ b/src/etc/rc.initial.defaults
@@ -36,24 +36,13 @@
$fp = fopen('php://stdin', 'r');
- echo <<<EOD
-
-You are about to reset the firewall to factory defaults.
-The firewall will reboot after resetting the configuration.
-
-Do you want to proceed [y|n]?
-EOD;
+ echo "\n" . gettext("You are about to reset the firewall to factory defaults.");
+ echo "\n" . gettext("The firewall will reboot after resetting the configuration.");
+ echo "\n" . gettext("Do you want to proceed [y|n]?") . " ";
if (strcasecmp(chop(fgets($fp)), "y") == 0) {
-
reset_factory_defaults();
-
- echo <<<EOD
-
-{$g['product_name']} is rebooting now.
-
-EOD;
-
+ echo "\n" . sprintf(gettext("%s is rebooting now."), $g['product_name']) . "\n";
system_reboot_sync();
}
OpenPOWER on IntegriCloud