diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-25 12:51:17 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-25 12:51:17 -0500 |
commit | 9a4dad76fcdd5522db4ca35100de90237f329938 (patch) | |
tree | 66975f728c0e498876bde9c49a1b58dc105358cf /src/usr/local/www | |
parent | 71d255dfb433f167dadd13cb3cb9bf784b196e23 (diff) | |
download | pfsense-9a4dad76fcdd5522db4ca35100de90237f329938.zip pfsense-9a4dad76fcdd5522db4ca35100de90237f329938.tar.gz |
Apply gettext to javascript countdown message
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/pkg_mgr_install.php | 6 |
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); |