diff options
author | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-29 11:55:30 -0300 |
---|---|---|
committer | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-29 11:55:30 -0300 |
commit | 54d2bf91dfb43a90bad87dd07559875b2e913848 (patch) | |
tree | 46529d8ea71767c5a84900a53345e2c71cf40c62 /usr | |
parent | c1ff2246d30a3d16f7fd9d185de7bbaf08cdeb8f (diff) | |
download | pfsense-54d2bf91dfb43a90bad87dd07559875b2e913848.zip pfsense-54d2bf91dfb43a90bad87dd07559875b2e913848.tar.gz |
Implement gettext calls on reboot.php
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/reboot.php | 18 |
1 files 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"); <?php include("fbegin.inc"); ?> <?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?> <form action="reboot.php" method="post"> - <p><strong>Are you sure you want to reboot the system?</strong></p> + <p><strong><?=gettext("Are you sure you want to reboot the system?");?></strong></p> <p> - <input name="Submit" type="submit" class="formbtn" value=" Yes "> - <input name="Submit" type="submit" class="formbtn" value=" No "> + <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" Yes ");?>"> + <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" No ");?>"> </p> </form> <?php endif; ?> @@ -69,13 +69,13 @@ include("head.inc"); <?php if ($_POST) { - if ($_POST['Submit'] == " Yes ") { + if ($_POST['Submit'] == gettext(" Yes ")) { echo "<meta http-equiv=\"refresh\" content=\"70;url=/\">"; 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 +?> |