summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-25 12:51:17 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-25 12:51:17 -0500
commit9a4dad76fcdd5522db4ca35100de90237f329938 (patch)
tree66975f728c0e498876bde9c49a1b58dc105358cf
parent71d255dfb433f167dadd13cb3cb9bf784b196e23 (diff)
downloadpfsense-9a4dad76fcdd5522db4ca35100de90237f329938.zip
pfsense-9a4dad76fcdd5522db4ca35100de90237f329938.tar.gz
Apply gettext to javascript countdown message
-rw-r--r--src/usr/local/www/pkg_mgr_install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php
index 6f86cf4..951f3cb 100644
--- a/src/usr/local/www/pkg_mgr_install.php
+++ b/src/usr/local/www/pkg_mgr_install.php
@@ -646,7 +646,7 @@ function scrollToBottom() {
$('#output').scrollTop($('#output')[0].scrollHeight);
}
-var timeoutmsg = '<h4>' + '<?=gettext('Rebooting')?>' + '<br />' + 'Page will automatically reload in ';
+var timeoutmsg = '<h4><?=gettext("Rebooting");?><br /><?=gettext("Page will automatically reload in ");?>';
var time = 0;
function checkonline() {
@@ -662,11 +662,11 @@ function checkonline() {
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>' + '<?=gettext('Not yet ready')?>' + '<br />Retrying in another ';
+ timeoutmsg = '<h4><?=gettext("Not yet ready");?><br /><?=gettext("Retrying in another ");?>';
checkonline();
}
}, 1000);
OpenPOWER on IntegriCloud