summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_reboot.php
diff options
context:
space:
mode:
authorbruno <bruno.stein@bluepex.com>2016-01-21 14:56:10 -0200
committerbruno <bruno.stein@bluepex.com>2016-01-21 14:56:10 -0200
commitff30e319d4239b4b6df55d2663f7c0f5efded5e1 (patch)
tree51a202b804c109c61b9560b39d68bf8facf1c944 /src/usr/local/www/diag_reboot.php
parentbab790f20be61f0390364945cc5a40de82e0f73f (diff)
downloadpfsense-ff30e319d4239b4b6df55d2663f7c0f5efded5e1.zip
pfsense-ff30e319d4239b4b6df55d2663f7c0f5efded5e1.tar.gz
add call gettext function for translate
Diffstat (limited to 'src/usr/local/www/diag_reboot.php')
-rwxr-xr-xsrc/usr/local/www/diag_reboot.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_reboot.php b/src/usr/local/www/diag_reboot.php
index d1f3393..b347d30 100755
--- a/src/usr/local/www/diag_reboot.php
+++ b/src/usr/local/www/diag_reboot.php
@@ -79,7 +79,7 @@ include("head.inc");
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (DEBUG) {
- print_info_box("Not actually rebooting (DEBUG is set true)", 'success');
+ print_info_box(gettext("Not actually rebooting (DEBUG is set true)"), 'success');
} else {
print('<div><pre>');
system_reboot();
@@ -94,7 +94,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
//<![CDATA[
events.push(function() {
- var timeoutmsg = '<h4>Rebooting<br />Page will automatically reload in ';
+ var timeoutmsg = '<h4><?=gettext("Rebooting");?><br /><?=gettext("Page will automatically reload in ");?>';
var time = 0;
function checkonline() {
@@ -110,11 +110,11 @@ events.push(function() {
function startCountdown() {
setInterval(function() {
if (time > 0) {
- $('#countdown').html(timeoutmsg + time + ' seconds.</h4>');
+ $('#countdown').html(timeoutmsg + time + ' <?=gettext("seconds");?>.</h4>');
time--;
} else {
time = "<?=$guiretry?>";
- timeoutmsg = '<h4>Not yet ready<br />Retrying in another ';
+ timeoutmsg = '<h4><?=gettext("Not yet ready");?><br /><?=gettext("Retrying in another ");?>';
checkonline();
}
}, 1000);
OpenPOWER on IntegriCloud