From 54d2bf91dfb43a90bad87dd07559875b2e913848 Mon Sep 17 00:00:00 2001 From: Rafael Lucas Date: Thu, 29 Jul 2010 11:55:30 -0300 Subject: Implement gettext calls on reboot.php --- usr/local/www/reboot.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/local/www/reboot.php b/usr/local/www/reboot.php index df607a7..284386e 100755 --- a/usr/local/www/reboot.php +++ b/usr/local/www/reboot.php @@ -41,14 +41,14 @@ require("functions.inc"); require("captiveportal.inc"); if ($_POST) { - if ($_POST['Submit'] == " Yes ") { - $rebootmsg = "The system is rebooting now. This may take one minute."; + if ($_POST['Submit'] == gettext(" Yes ")) { + $rebootmsg = gettext("The system is rebooting now. This may take one minute."); } else { Header("Location: /"); } } -$pgtitle = array("Diagnostics","Reboot System"); +$pgtitle = array(gettext("Diagnostics"),gettext("Reboot System")); include("head.inc"); ?> @@ -56,10 +56,10 @@ include("head.inc");
-

Are you sure you want to reboot the system?

+

- - + "> + ">

@@ -69,13 +69,13 @@ include("head.inc"); "; system_reboot(); - $rebootmsg = "The system is rebooting now. This may take one minute."; + $rebootmsg = gettext("The system is rebooting now. This may take one minute."); } else { exit; } } -?> \ No newline at end of file +?> -- cgit v1.1