diff options
author | heitor.lessa <heitor.lessa@hotmail.com> | 2010-08-01 18:37:12 -0300 |
---|---|---|
committer | heitor.lessa <heitor.lessa@hotmail.com> | 2010-08-01 18:37:12 -0300 |
commit | 2dafb24c309f6cd9a343fb993ea86a147ae10fb8 (patch) | |
tree | fd58c7b3579627a7bdfa491bd1cd72e3e2cc1540 | |
parent | eb0949455e81e4ef70a9ca24cfffb589bf5a7256 (diff) | |
download | pfsense-2dafb24c309f6cd9a343fb993ea86a147ae10fb8.zip pfsense-2dafb24c309f6cd9a343fb993ea86a147ae10fb8.tar.gz |
Implement gettext calls() on halt.php
-rwxr-xr-x | usr/local/www/halt.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/halt.php b/usr/local/www/halt.php index 0867b60..ae349b0 100755 --- a/usr/local/www/halt.php +++ b/usr/local/www/halt.php @@ -49,14 +49,14 @@ require("captiveportal.inc"); if ($_POST) { if ($_POST['Submit'] != " No ") { system_halt(); - $rebootmsg = "The system is halting now. This may take one minute."; + $rebootmsg = sprintf(gettext"The system is halting now. This may take one minute."); } else { - header("Location: index.php"); + header(gettext("Location: index.php")); exit; } } -$pgtitle = array("Diagnostics","Halt system"); +$pgtitle = array(gettext("Diagnostics"),gettext("Halt system")); include('head.inc'); ?> @@ -64,7 +64,7 @@ include('head.inc'); <?php include("fbegin.inc"); ?> <?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?> <form action="halt.php" method="post"> - <p><strong>Are you sure you want to halt the system?</strong></p> + <p><strong><?=gettext("Are you sure you want to halt the system?");?></strong></p> <p> <input name="Submit" type="submit" class="formbtn" value=" Yes "> <input name="Submit" type="submit" class="formbtn" value=" No "> |